fix(Postgres Node): Falsy query parameters ignored (#10960)

This commit is contained in:
Michael Kret
2024-09-26 18:09:13 +03:00
committed by GitHub
parent c7888ef229
commit 4a63cff5ec
2 changed files with 24 additions and 1 deletions

View File

@@ -80,7 +80,7 @@ export async function execute(
const rawReplacements = (node.parameters.options as IDataObject)?.queryReplacement as string;
const stringToArray = (str: NodeParameterValueType | undefined) => {
if (!str) return [];
if (str === undefined) return [];
return String(str)
.split(',')
.filter((entry) => entry)