Skip to content

Commit

Permalink
Update app/internal/domain/service/slack_reaction_users.go
Browse files Browse the repository at this point in the history
Co-authored-by: Hotaka Hattori <[email protected]>
  • Loading branch information
sho0126hiro and hotakahattori authored Feb 19, 2023
1 parent e3f3412 commit 272355d
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 @@ -52,7 +52,7 @@ const (
// and calls slackRepository.ListUsersEmail for each chunk.
func (s *slackReactionUsersService) chunkedListUsersEmail(ctx context.Context, userIDs []string) ([]*model.SlackUserEmail, error) {
chunkedUserIDsList := slice.SplitStringSliceInChunks(userIDs, ChunkSizeOfChunkedListUserEmail)
var slackUserEmails []*model.SlackUserEmail
slackUserEmails := make([]*model.SlackUserEmail, 0, len(chunkedUserIDsList))
for _, chunkedUserIDs := range chunkedUserIDsList {
userEmails, err := s.slackRepository.ListUsersEmail(ctx, chunkedUserIDs)
if err != nil {
Expand Down

0 comments on commit 272355d

Please sign in to comment.