aboutsummaryrefslogtreecommitdiffstats
path: root/packages/trpc
diff options
context:
space:
mode:
authorMohamedBassem <me@mbassem.com>2024-03-05 19:51:50 +0000
committerMohamedBassem <me@mbassem.com>2024-03-05 19:57:43 +0000
commitaceece8a41b17c14cc9767041ab714f899ce6175 (patch)
tree5c593fb3c27e61b97d5b5ff34c37aee5b8e8dde7 /packages/trpc
parent2413f0efee2dcb4cd4c9389f5a496d4b3f71335c (diff)
downloadkarakeep-aceece8a41b17c14cc9767041ab714f899ce6175.tar.zst
build: Fix the web build
Diffstat (limited to 'packages/trpc')
-rw-r--r--packages/trpc/index.ts4
-rw-r--r--packages/trpc/routers/users.ts4
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 }) => {