mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 06:34:05 -08:00
⚡ Close Postgres-Databank connection once node is done
This commit is contained in:
parent
6a88484d46
commit
78af036231
|
@ -285,6 +285,9 @@ export class Postgres implements INodeType {
|
|||
throw new Error(`The operation "${operation}" is not supported!`);
|
||||
}
|
||||
|
||||
// Close the connection
|
||||
await pgp.end();
|
||||
|
||||
return this.prepareOutputData(returnItems);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue