Add download field to Airtable Trigger (#1406)

This commit is contained in:
Ricardo Espinoza
2021-02-04 09:43:48 -05:00
committed by GitHub
parent 39ef004021
commit b1ad897a86
2 changed files with 31 additions and 1 deletions

View File

@@ -130,7 +130,7 @@ export async function apiRequestAllItems(this: IHookFunctions | IExecuteFunction
};
}
export async function downloadRecordAttachments(this: IExecuteFunctions, records: IRecord[], fieldNames: string[]): Promise<INodeExecutionData[]> {
export async function downloadRecordAttachments(this: IExecuteFunctions | IPollFunctions, records: IRecord[], fieldNames: string[]): Promise<INodeExecutionData[]> {
const elements: INodeExecutionData[] = [];
for (const record of records) {
const element: INodeExecutionData = { json: {}, binary: {} };