This commit is contained in:
2026-09-17 11:22:18 +01:00
parent a357f69380
commit 9129593545
3 changed files with 9 additions and 3 deletions
+3 -1
View File
@@ -34,7 +34,9 @@ export default async function DbUpdate({ table, data, query, targetId, }) {
const isLast = i == keys.length - 1;
sql += ` ${key}=?`;
const value = finalData[key];
values.push(value || null);
values.push(typeof value == "number" || typeof value == "string"
? value
: value || null);
if (!isLast) {
sql += `,`;
}