From 90fcd3867dcbd8a4d49913274df759c6a8d2f382 Mon Sep 17 00:00:00 2001 From: Benjamin Toby Date: Sat, 8 Aug 2026 16:33:37 +0100 Subject: [PATCH] Update db-update function --- dist/lib/db-handler.js | 1 + dist/lib/mariadb/db-update.js | 1 + dist/types/index.d.ts | 1 + package.json | 2 +- src/lib/db-handler.ts | 1 + src/lib/mariadb/db-update.ts | 1 + src/types/index.ts | 1 + 7 files changed, 7 insertions(+), 1 deletion(-) diff --git a/dist/lib/db-handler.js b/dist/lib/db-handler.js index 8343fb7..d7aed6a 100644 --- a/dist/lib/db-handler.js +++ b/dist/lib/db-handler.js @@ -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) { diff --git a/dist/lib/mariadb/db-update.js b/dist/lib/mariadb/db-update.js index 42a248f..e51b795 100644 --- a/dist/lib/mariadb/db-update.js +++ b/dist/lib/mariadb/db-update.js @@ -72,6 +72,7 @@ export default async function DbUpdate({ table, data, query, targetId, config, } config, }); return { + ...res, ...updated_res, debug: { sqlObj, diff --git a/dist/types/index.d.ts b/dist/types/index.d.ts index 9386ffe..071deb1 100644 --- a/dist/types/index.d.ts +++ b/dist/types/index.d.ts @@ -1410,6 +1410,7 @@ export type DBResponseObject