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 += `,`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user