From aceece8a41b17c14cc9767041ab714f899ce6175 Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Tue, 5 Mar 2024 19:51:50 +0000 Subject: build: Fix the web build --- packages/trpc/index.ts | 4 ++-- packages/trpc/routers/users.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'packages/trpc') diff --git a/packages/trpc/index.ts b/packages/trpc/index.ts index 6ca0bbf7..bcfa7211 100644 --- a/packages/trpc/index.ts +++ b/packages/trpc/index.ts @@ -5,8 +5,8 @@ import superjson from "superjson"; type User = { id: string; - name: string; - email: string; + name?: string | null | undefined; + email?: string | null | undefined; role: "admin" | "user" | null; }; diff --git a/packages/trpc/routers/users.ts b/packages/trpc/routers/users.ts index efef61af..1a851b05 100644 --- a/packages/trpc/routers/users.ts +++ b/packages/trpc/routers/users.ts @@ -99,8 +99,8 @@ export const usersAppRouter = router({ .output( z.object({ id: z.string(), - name: z.string(), - email: z.string(), + name: z.string().nullish(), + email: z.string().nullish(), }), ) .query(async ({ ctx }) => { -- cgit v1.2.3-70-g09d2