small improvements

This commit is contained in:
ricardo
2020-03-17 14:39:20 -04:00
parent ba2d411d33
commit 79ba4dd43d
3 changed files with 69 additions and 0 deletions

View File

@@ -206,6 +206,9 @@ export class MicrosoftExcel implements INodeType {
if (!rawData) {
//@ts-ignore
responseData = responseData.map(column => ({ name: column.name }));
} else {
const dataProperty = this.getNodeParameter('dataProperty', i) as string;
responseData = { [dataProperty] : responseData };
}
}
}
@@ -242,6 +245,9 @@ export class MicrosoftExcel implements INodeType {
result.push({ ...object });
}
responseData = result;
} else {
const dataProperty = this.getNodeParameter('dataProperty', i) as string;
responseData = { [dataProperty] : responseData };
}
}
}
@@ -321,6 +327,9 @@ export class MicrosoftExcel implements INodeType {
result.push({ ...object });
}
responseData = result;
} else {
const dataProperty = this.getNodeParameter('dataProperty', i) as string;
responseData = { [dataProperty] : responseData };
}
}
}