mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-26 21:19:43 -08:00
⚡ Fix Postgres SSL support for existing none SSL connections
This commit is contained in:
parent
fb55e5ab29
commit
03919a4c68
|
@ -208,14 +208,12 @@ export class Postgres implements INodeType {
|
||||||
database: credentials.database as string,
|
database: credentials.database as string,
|
||||||
user: credentials.user as string,
|
user: credentials.user as string,
|
||||||
password: credentials.password as string,
|
password: credentials.password as string,
|
||||||
ssl: credentials.ssl != 'disable',
|
ssl: !['disable', undefined].includes(credentials.ssl as string | undefined),
|
||||||
sslmode: credentials.ssl as string
|
sslmode: credentials.ssl as string || 'disable',
|
||||||
};
|
};
|
||||||
|
|
||||||
const db = pgp(config);
|
const db = pgp(config);
|
||||||
|
|
||||||
//const db = pgp(`postgres://${credentials.user}:${credentials.password}@${credentials.host}:${credentials.port}/${credentials.database}`);
|
|
||||||
|
|
||||||
let returnItems = [];
|
let returnItems = [];
|
||||||
|
|
||||||
const items = this.getInputData();
|
const items = this.getInputData();
|
||||||
|
|
Loading…
Reference in a new issue