mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
ci: Fix linting on master (no-changelog) (#4830)
This commit is contained in:
parent
eb112ffd23
commit
8c9681e8ce
|
@ -71,7 +71,7 @@ export async function koBoToolboxRawRequest(
|
|||
option.url = credentials.URL + option.url;
|
||||
}
|
||||
|
||||
return await this.helpers.httpRequestWithAuthentication.call(this, 'koBoToolboxApi', option);
|
||||
return this.helpers.httpRequestWithAuthentication.call(this, 'koBoToolboxApi', option);
|
||||
}
|
||||
|
||||
function parseGeoPoint(geoPoint: string): null | number[] {
|
||||
|
|
|
@ -392,7 +392,7 @@ export class KoBoToolbox implements INodeType {
|
|||
|
||||
if (operation === 'get') {
|
||||
const fileId = this.getNodeParameter('fileId', i) as string;
|
||||
const download = this.getNodeParameter('download', i) as boolean;
|
||||
const download = this.getNodeParameter('download', i);
|
||||
|
||||
responseData = [
|
||||
await koBoToolboxApiRequest.call(this, {
|
||||
|
@ -400,7 +400,7 @@ export class KoBoToolbox implements INodeType {
|
|||
}),
|
||||
];
|
||||
|
||||
if (responseData && responseData[0] && download) {
|
||||
if (responseData?.[0] && download) {
|
||||
const binaryPropertyName = this.getNodeParameter('binaryPropertyName', i) as string;
|
||||
|
||||
const binaryItem: INodeExecutionData = {
|
||||
|
@ -444,7 +444,7 @@ export class KoBoToolbox implements INodeType {
|
|||
if ('binary' === fileMode) {
|
||||
const binaryPropertyName = this.getNodeParameter('binaryPropertyName', i) as string;
|
||||
const item = items[i].binary as IBinaryKeyData;
|
||||
const binaryData = item[binaryPropertyName] as IBinaryData;
|
||||
const binaryData = item[binaryPropertyName];
|
||||
|
||||
body.base64Encoded = 'data:' + binaryData.mimeType + ';base64,' + binaryData.data;
|
||||
body.metadata = {
|
||||
|
|
Loading…
Reference in a new issue