From 88257d0eee80ac96a2f6cf5b3fe0113bdf8f576b Mon Sep 17 00:00:00 2001 From: Rafi Arrafif Date: Mon, 28 Jul 2025 11:22:08 +0700 Subject: [PATCH] :label: change include option when getting user data --- src/modules/user/schemas/getUserOptions.schema.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/user/schemas/getUserOptions.schema.ts b/src/modules/user/schemas/getUserOptions.schema.ts index 490f29c..8707314 100644 --- a/src/modules/user/schemas/getUserOptions.schema.ts +++ b/src/modules/user/schemas/getUserOptions.schema.ts @@ -1,6 +1,7 @@ import z from "zod"; -const includeOptions = ["preference", "roles"] as const; +// Define related tables that are retrieved together with user data +const includeOptions = ["preference", "assignedRoles"] as const; export const getUserOptionsSchema = z.object({ verbosity: z.enum(