fix(Postgres Node): For select queries, empty result should be be replaced with {"success":true} (#6703)

* fix(Postgres Node): For select queries, empty result should be be replaced with `{"success":true}`

*  less checks

---------

Co-authored-by: Michael Kret <michael.k@radency.com>
This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-07-19 16:15:43 +02:00
committed by GitHub
parent 8bb7243c2d
commit 250175d066
2 changed files with 5 additions and 3 deletions

View File

@@ -17,6 +17,7 @@ export async function router(this: IExecuteFunctions): Promise<INodeExecutionDat
const credentials = await this.getCredentials('postgres');
const options = this.getNodeParameter('options', 0, {});
options.nodeVersion = this.getNode().typeVersion;
options.operation = operation;
const { db, pgp, sshClient } = await configurePostgres(credentials, options);