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 = ``;