Bugfix: error handling in db-update function

This commit is contained in:
2026-08-09 07:34:14 +01:00
parent b8e9ab07f2
commit e8f630ae98
3 changed files with 8 additions and 1 deletions
+3
View File
@@ -60,6 +60,9 @@ export default async function DbUpdate({ table, data, query, targetId, config, }
values: values,
config,
});
if (res.error) {
return res;
}
sqlObj.string = sql;
sqlObj.values = values;
let updated_sql = ``;
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@moduletrace/bun-mariadb",
"version": "1.0.17",
"version": "1.0.18",
"description": "Schema-driven MariaDB manager for Bun",
"author": "Benjamin Toby",
"license": "MIT",
+4
View File
@@ -106,6 +106,10 @@ export default async function DbUpdate<
config,
});
if (res.error) {
return res;
}
sqlObj.string = sql;
sqlObj.values = values as any[];