mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
⚡ Increase the Slack default query limit to reduce number of
requests
This commit is contained in:
@@ -76,7 +76,7 @@ export async function slackApiRequestAllItems(this: IExecuteFunctions | ILoadOpt
|
|||||||
if (endpoint.includes('files.list')) {
|
if (endpoint.includes('files.list')) {
|
||||||
query.count = 100;
|
query.count = 100;
|
||||||
} else {
|
} else {
|
||||||
query.limit = 5;
|
query.limit = 100;
|
||||||
}
|
}
|
||||||
do {
|
do {
|
||||||
responseData = await slackApiRequest.call(this, method, endpoint, body, query);
|
responseData = await slackApiRequest.call(this, method, endpoint, body, query);
|
||||||
|
|||||||
Reference in New Issue
Block a user