Skip to content

Commit

Permalink
fix count of results not populated for search
Browse files Browse the repository at this point in the history
  • Loading branch information
rusq committed Oct 12, 2024
1 parent 2fc4a7b commit 6b142e9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/chunk/recorder.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ func (rec *Recorder) ChannelUsers(ctx context.Context, channelID string, threadT
chunk := Chunk{
Type: CChannelUsers,
ChannelID: channelID,
Count: len(users),
Timestamp: time.Now().UnixNano(),
ChannelUsers: users,
}
Expand All @@ -225,6 +226,7 @@ func (rec *Recorder) SearchMessages(ctx context.Context, query string, sm []slac
chunk := Chunk{
Type: CSearchMessages,
Timestamp: time.Now().UnixNano(),
Count: len(sm),
SearchQuery: query,
SearchMessages: sm,
}
Expand All @@ -241,6 +243,7 @@ func (rec *Recorder) SearchFiles(ctx context.Context, query string, sf []slack.F
chunk := Chunk{
Type: CSearchFiles,
Timestamp: time.Now().UnixNano(),
Count: len(sf),
SearchQuery: query,
SearchFiles: sf,
}
Expand Down

0 comments on commit 6b142e9

Please sign in to comment.