mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
⚡ Return last record when executing manually
This commit is contained in:
parent
fd1897a288
commit
fe97bf6619
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue