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 += `,`;
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@moduletrace/bun-sqlite",
"version": "1.1.11",
"version": "1.1.12",
"description": "SQLite manager for Bun",
"author": "Benjamin Toby",
"main": "dist/index.js",
+5 -1
View File
@@ -71,7 +71,11 @@ export default async function DbUpdate<
sql += ` ${key}=?`;
const value = finalData[key];
values.push(value || null);
values.push(
typeof value == "number" || typeof value == "string"
? value
: value || null,
);
if (!isLast) {
sql += `,`;