Skip to content

Commit

Permalink
fix condition
Browse files Browse the repository at this point in the history
  • Loading branch information
sho0126hiro committed Mar 19, 2023
1 parent 5f2bdb0 commit e8136cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/internal/domain/service/slack_reaction_users.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func (s *slackReactionUsersService) ListUsersEmailByReaction(ctx context.Context
// isReactionRefetchNeeded returns true if more fetches is required
func (s *slackReactionUsersService) isReactionRefetchNeeded(reactions []*model.SlackReaction) bool {
for _, r := range reactions {
if r.Count != len(r.UserIDs) {
if r.Count > len(r.UserIDs) {
return true
}
}
Expand Down

0 comments on commit e8136cf

Please sign in to comment.