🎨 fix format

This commit is contained in:
Ben Hesseldieck
2020-07-09 17:16:45 +02:00
parent 9f39156994
commit 3bf34cffa9
4 changed files with 15 additions and 60 deletions

View File

@@ -1,18 +1,9 @@
import { IExecuteFunctions } from 'n8n-core';
import {
IDataObject,
INodeExecutionData,
INodeType,
INodeTypeDescription,
} from 'n8n-workflow';
import { IDataObject, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
import * as pgPromise from 'pg-promise';
import {
pgInsert,
pgQuery,
pgUpdate,
} from '../Postgres/Postgres.node.functions';
import { pgInsert, pgQuery, pgUpdate } from '../Postgres/Postgres.node.functions';
export class QuestDB implements INodeType {
description: INodeTypeDescription = {
@@ -134,8 +125,7 @@ export class QuestDB implements INodeType {
},
},
default: '*',
description:
'Comma separated list of the fields that the operation will return',
description: 'Comma separated list of the fields that the operation will return',
},
// ----------------------------------
@@ -200,9 +190,7 @@ export class QuestDB implements INodeType {
database: credentials.database as string,
user: credentials.user as string,
password: credentials.password as string,
ssl: !['disable', undefined].includes(
credentials.ssl as string | undefined,
),
ssl: !['disable', undefined].includes(credentials.ssl as string | undefined),
sslmode: (credentials.ssl as string) || 'disable',
};
@@ -226,12 +214,7 @@ export class QuestDB implements INodeType {
// insert
// ----------------------------------
const [insertData, insertItems] = await pgInsert(
this.getNodeParameter,
pgp,
db,
items,
);
const [insertData, insertItems] = await pgInsert(this.getNodeParameter, pgp, db, items);
// Add the id to the data
for (let i = 0; i < insertData.length; i++) {