1
1
mirror of https://github.com/n8n-io/n8n.git synced 2024-09-11 13:15:28 +03:00

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();