From a88f418901eaf75d11ec32beee034aae42d82251 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=99=E2=97=A6=20The=20Tablet=20=E2=9D=80=20GamerGirla?= =?UTF-8?q?ndCo=20=E2=97=A6=E2=9D=A7?= Date: Tue, 2 Apr 2024 01:33:15 -0400 Subject: [PATCH] refactor(server/utils): update server-side constants define array of sensitive user model fields to exclude when querying and returning --- lib/server/constants.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/server/constants.ts b/lib/server/constants.ts index f136a20..03702f8 100644 --- a/lib/server/constants.ts +++ b/lib/server/constants.ts @@ -142,3 +142,4 @@ export const rc: RuntimeConfig & any = { }, app: {}, }; +export const doNotSelect = ["password", "auth", "ipLog"].map((b) => `-${b}`).join(" ");