fix(core): Missing pairing info (#7326)

Github issue / Community forum post (link here to close automatically):
This commit is contained in:
Michael Kret
2023-10-10 18:36:20 +03:00
committed by GitHub
parent 6479eb180f
commit e2c3c7aceb
52 changed files with 363 additions and 157 deletions

View File

@@ -3,6 +3,7 @@ import type { SheetProperties } from '../../helpers/GoogleSheets.types';
import { apiRequest } from '../../transport';
import type { GoogleSheet } from '../../helpers/GoogleSheet';
import { getExistingSheetNames, hexToRgb } from '../../helpers/GoogleSheets.utils';
import { wrapData } from '../../../../../../utils/utilities';
export const description: SheetProperties = [
{
@@ -78,7 +79,7 @@ export async function execute(
sheetName: string,
): Promise<INodeExecutionData[]> {
let responseData;
const returnData: IDataObject[] = [];
const returnData: INodeExecutionData[] = [];
const items = this.getInputData();
const existingSheetNames = await getExistingSheetNames(sheet);
@@ -120,7 +121,12 @@ export async function execute(
existingSheetNames.push(sheetTitle);
returnData.push(responseData as IDataObject);
const executionData = this.helpers.constructExecutionMetaData(
wrapData(responseData as IDataObject[]),
{ itemData: { item: i } },
);
returnData.push(...executionData);
}
return this.helpers.returnJsonArray(returnData);
return returnData;
}