Fix sqlarr of api (#1188)

This commit is contained in:
Zoe Roux
2025-11-30 20:29:46 +01:00
committed by GitHub
parent e401ca98c0
commit af4742ae0b
6 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -83,7 +83,7 @@ export function sqlarr(array: unknown[]): string {
? sqlarr(item)
: typeof item === "object"
? `"${JSON.stringify(item).replaceAll("\\", "\\\\").replaceAll('"', '\\"')}"`
: `"${item}"`,
: `"${item?.toString().replaceAll('"', '\\"')}"`,
)
.join(", ")}}`;
}