Updates
This commit is contained in:
Vendored
+3
-1
@@ -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
@@ -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",
|
||||
|
||||
@@ -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 += `,`;
|
||||
|
||||
Reference in New Issue
Block a user