Minor improvement to AirtableTrigger-Node

This commit is contained in:
Jan Oberhauser 2020-11-24 19:58:49 +01:00
parent 0f610e6f5c
commit a4a04720fa

View file

@ -145,6 +145,10 @@ export class AirtableTrigger implements INodeType {
webhookData.lastTimeChecked = endDate;
if (Array.isArray(records) && records.length) {
if (this.getMode() === 'manual' && records[0].fields[triggerField] === undefined) {
throw new Error(`The Field "${triggerField}" does not exist.`);
}
return [this.helpers.returnJsonArray(records)];
}