Update db-update function #2

This commit is contained in:
2026-08-08 16:35:23 +01:00
parent 90fcd3867d
commit 44ec3d4c11
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -72,11 +72,11 @@ export default async function DbUpdate({ table, data, query, targetId, config, }
config, config,
}); });
return { return {
...res,
...updated_res, ...updated_res,
debug: { debug: {
sqlObj, sqlObj,
}, },
db_res: res.db_res,
}; };
} }
catch (error) { catch (error) {
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@moduletrace/bun-mariadb", "name": "@moduletrace/bun-mariadb",
"version": "1.0.15", "version": "1.0.16",
"description": "Schema-driven MariaDB manager for Bun", "description": "Schema-driven MariaDB manager for Bun",
"author": "Benjamin Toby", "author": "Benjamin Toby",
"license": "MIT", "license": "MIT",
+1 -1
View File
@@ -122,11 +122,11 @@ export default async function DbUpdate<
}); });
return { return {
...res,
...updated_res, ...updated_res,
debug: { debug: {
sqlObj, sqlObj,
}, },
db_res: res.db_res,
}; };
} catch (error: any) { } catch (error: any) {
return { return {