Update db-update function

This commit is contained in:
2026-08-08 16:33:37 +01:00
parent 4d85a69505
commit 90fcd3867d
7 changed files with 7 additions and 1 deletions
+1
View File
@@ -49,6 +49,7 @@ export default async function dbHandler({ query, values, config }) {
single_res: res_array?.[0],
insert_return,
count,
db_res: res,
};
}
catch (error) {
+1
View File
@@ -72,6 +72,7 @@ export default async function DbUpdate({ table, data, query, targetId, config, }
config,
});
return {
...res,
...updated_res,
debug: {
sqlObj,
+1
View File
@@ -1410,6 +1410,7 @@ export type DBResponseObject<T extends {
msg?: string;
debug?: any;
count?: number;
db_res?: any;
};
export type DBInsertReturn = {
count?: number;