From 8211ce7edf0c9795b65d4676db1d1364d4855dcd Mon Sep 17 00:00:00 2001 From: JoshuaSBrown Date: Thu, 4 Dec 2025 22:12:48 -0500 Subject: [PATCH 1/2] refactor: only print subset of user properties. --- core/database/foxx/api/user_router.js | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/core/database/foxx/api/user_router.js b/core/database/foxx/api/user_router.js index 5e233d1f5..c7cf31a02 100644 --- a/core/database/foxx/api/user_router.js +++ b/core/database/foxx/api/user_router.js @@ -316,6 +316,7 @@ router .get("/update", function (req, res) { let client = null; let result = null; + let extra_log_info = null; try { g_db._executeTransaction({ collections: { @@ -391,6 +392,21 @@ router delete user.new.refresh; result = [user.new]; + + const { + is_admin, + max_coll, + max_proj, + max_sav_qry + } = user.new; + + extra_log_info = { + is_admin, + max_coll, + max_proj, + max_sav_qry + }; + }, }); res.send(result); @@ -401,7 +417,7 @@ router routePath: basePath + "/update", status: "Success", description: "Update user information", - extra: result, + extra: extra_log_info, }); } catch (e) { logger.logRequestFailure({ @@ -411,7 +427,7 @@ router routePath: basePath + "/update", status: "Failure", description: "Update user information", - extra: result, + extra: extra_log_info, error: e, }); g_lib.handleException(e, res); From 2d690fe3e572e69e2051c2830e0fca5fb7c5d4bc Mon Sep 17 00:00:00 2001 From: JoshuaSBrown Date: Fri, 5 Dec 2025 03:13:32 +0000 Subject: [PATCH 2/2] chore: Auto-format JavaScript files with Prettier --- core/database/foxx/api/user_router.js | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/core/database/foxx/api/user_router.js b/core/database/foxx/api/user_router.js index c7cf31a02..189ff5b00 100644 --- a/core/database/foxx/api/user_router.js +++ b/core/database/foxx/api/user_router.js @@ -393,20 +393,14 @@ router result = [user.new]; - const { - is_admin, - max_coll, - max_proj, - max_sav_qry - } = user.new; + const { is_admin, max_coll, max_proj, max_sav_qry } = user.new; extra_log_info = { - is_admin, - max_coll, - max_proj, - max_sav_qry + is_admin, + max_coll, + max_proj, + max_sav_qry, }; - }, }); res.send(result);