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