Update db-update function
This commit is contained in:
@@ -75,6 +75,7 @@ export default async function dbHandler<
|
||||
single_res: res_array?.[0],
|
||||
insert_return,
|
||||
count,
|
||||
db_res: res,
|
||||
};
|
||||
} catch (error: any) {
|
||||
return {
|
||||
|
||||
@@ -122,6 +122,7 @@ export default async function DbUpdate<
|
||||
});
|
||||
|
||||
return {
|
||||
...res,
|
||||
...updated_res,
|
||||
debug: {
|
||||
sqlObj,
|
||||
|
||||
@@ -1618,6 +1618,7 @@ export type DBResponseObject<
|
||||
msg?: string;
|
||||
debug?: any;
|
||||
count?: number;
|
||||
db_res?: any;
|
||||
};
|
||||
|
||||
export type DBInsertReturn = {
|
||||
|
||||
Reference in New Issue
Block a user