Skip to content

Commit

Permalink
fix(slack): get conversations with limit 1000
Browse files Browse the repository at this point in the history
  • Loading branch information
everpcpc committed Aug 18, 2021
1 parent f636b54 commit cd3e371
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions slack/slack.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ func (c *Client) Run() {
var cursor string
for {
chs, cursor, err := c.api.GetConversations(&slack.GetConversationsParameters{
Limit: 1000,
Cursor: cursor,
Types: []string{"public_channel"},
})
Expand All @@ -129,6 +130,7 @@ func (c *Client) Run() {
for name, fc := range c.forwards {
for {
chs, cursor, err := fc.api.GetConversations(&slack.GetConversationsParameters{
Limit: 1000,
Cursor: cursor,
Types: []string{"public_channel"},
})
Expand Down

0 comments on commit cd3e371

Please sign in to comment.