fix(core): Missing pairing info (#7326)
Github issue / Community forum post (link here to close automatically):
This commit is contained in:
@@ -1,21 +1,10 @@
|
||||
import type { IExecuteFunctions, IDataObject, INodeExecutionData } from 'n8n-workflow';
|
||||
import type { IExecuteFunctions, INodeExecutionData } from 'n8n-workflow';
|
||||
import type { SpreadSheetProperties } from '../../helpers/GoogleSheets.types';
|
||||
import { apiRequest } from '../../transport';
|
||||
import { GOOGLE_DRIVE_FILE_URL_REGEX } from '../../../../constants';
|
||||
import { wrapData } from '../../../../../../utils/utilities';
|
||||
|
||||
export const description: SpreadSheetProperties = [
|
||||
// {
|
||||
// displayName: 'Spreadsheet ID',
|
||||
// name: 'spreadsheetId',
|
||||
// type: 'string',
|
||||
// default: '',
|
||||
// displayOptions: {
|
||||
// show: {
|
||||
// resource: ['spreadsheet'],
|
||||
// operation: ['deleteSpreadsheet'],
|
||||
// },
|
||||
// },
|
||||
// },
|
||||
{
|
||||
displayName: 'Document',
|
||||
name: 'documentId',
|
||||
@@ -77,7 +66,7 @@ export const description: SpreadSheetProperties = [
|
||||
|
||||
export async function execute(this: IExecuteFunctions): Promise<INodeExecutionData[]> {
|
||||
const items = this.getInputData();
|
||||
const returnData: IDataObject[] = [];
|
||||
const returnData: INodeExecutionData[] = [];
|
||||
|
||||
for (let i = 0; i < items.length; i++) {
|
||||
// const spreadsheetId = this.getNodeParameter('spreadsheetId', i) as string;
|
||||
@@ -94,8 +83,12 @@ export async function execute(this: IExecuteFunctions): Promise<INodeExecutionDa
|
||||
`https://www.googleapis.com/drive/v3/files/${documentId}`,
|
||||
);
|
||||
|
||||
returnData.push({ success: true });
|
||||
const executionData = this.helpers.constructExecutionMetaData(wrapData({ success: true }), {
|
||||
itemData: { item: i },
|
||||
});
|
||||
|
||||
returnData.push(...executionData);
|
||||
}
|
||||
|
||||
return this.helpers.returnJsonArray(returnData);
|
||||
return returnData;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user