Update db-update function #2
This commit is contained in:
Vendored
+1
-1
@@ -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
@@ -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",
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user