Close Postgres-Databank connection once node is done

This commit is contained in:
Jan Oberhauser 2019-10-31 17:43:30 +01:00
parent 6a88484d46
commit 78af036231

View file

@ -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);
}
}