diff options
Diffstat (limited to 'packages/trpc')
| -rw-r--r-- | packages/trpc/index.ts | 4 | ||||
| -rw-r--r-- | packages/trpc/routers/users.ts | 4 |
2 files changed, 4 insertions, 4 deletions
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 }) => { |
