Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Slack] Prevent rate limit when retrieving permissions
Description --- Fixes dust-tt/tasks#1655 As described in issue: - conversations.list is limited to 20 calls / minute; - getChannels sometimes return channels by batches of ~50 => a client with 500 channels will make 10 calls in a few seconds; - this led to user-facing errors, see issue. This PR caches the call to getChannels for 5 minutes, which will solve the issue satisfactorily for a good while Risk --- Blast radius: retrievePermission modals and slack syncs Low risk, the code is standard Tested locally Deploy --- connectors
- Loading branch information