mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
⚡ Return last record when executing manually
This commit is contained in:
@@ -137,6 +137,11 @@ export class AirtableTrigger implements INodeType {
|
||||
qs.filterByFormula = `AND(${qs.filterByFormula}, ${additionalFields.formula})`;
|
||||
}
|
||||
|
||||
if (this.getMode() === 'manual') {
|
||||
delete qs.filterByFormula;
|
||||
qs.maxRecords = 1;
|
||||
}
|
||||
|
||||
const { records } = await apiRequestAllItems.call(this, 'GET', endpoint, {}, qs);
|
||||
|
||||
webhookData.lastTimeChecked = endDate;
|
||||
|
||||
Reference in New Issue
Block a user