mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 11:22:15 +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})`;
|
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);
|
const { records } = await apiRequestAllItems.call(this, 'GET', endpoint, {}, qs);
|
||||||
|
|
||||||
webhookData.lastTimeChecked = endDate;
|
webhookData.lastTimeChecked = endDate;
|
||||||
|
|||||||
Reference in New Issue
Block a user