fix(Postgres Node): Node requires comma-separated string even when using a single parameter through an expression (#7300)

Github issue / Community forum post (link here to close automatically):
This commit is contained in:
Michael Kret 2023-09-29 13:27:31 +03:00 committed by GitHub
parent ec2aa3819c
commit 763d4514fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,7 +63,11 @@ export async function execute(
let values: Array<IDataObject | string> = [];
const queryReplacement = this.getNodeParameter('options.queryReplacement', i, '');
let queryReplacement = this.getNodeParameter('options.queryReplacement', i, '');
if (typeof queryReplacement === 'number') {
queryReplacement = String(queryReplacement);
}
if (typeof queryReplacement === 'string') {
const node = this.getNode();