minor fixes

This commit is contained in:
Wells Bunker 2025-09-11 12:28:14 -06:00
parent 633b66d132
commit f61a5baafd
No known key found for this signature in database
GPG Key ID: DB16D6F2679B78FC
1 changed files with 2 additions and 1 deletions

View File

@ -13,6 +13,7 @@ export const UserInfoByIdResponseSchema = z.object({
email: z.string().email(), email: z.string().email(),
role: z.string(), role: z.string(),
status: z.string(), status: z.string(),
organizationId: z.string().uuid(),
}); });
export type UserInfoByIdResponse = z.infer<typeof UserInfoByIdResponseSchema>; export type UserInfoByIdResponse = z.infer<typeof UserInfoByIdResponseSchema>;
@ -177,6 +178,6 @@ export async function getUserInformation(userId: string): Promise<UserInfoByIdRe
throw new Error(`User not found: ${userId}`); throw new Error(`User not found: ${userId}`);
} }
const user: UserInfoByIdResponse = userInfo[0]; const user = UserInfoByIdResponseSchema.parse(userInfo[0]);
return user; return user;
} }