feat: remove key from user response
This commit is contained in:
@@ -31,7 +31,6 @@ export const userRouter = createTRPCRouter({
|
|||||||
.object({
|
.object({
|
||||||
id: z.number(),
|
id: z.number(),
|
||||||
prefix: z.string().nullable(),
|
prefix: z.string().nullable(),
|
||||||
key: z.string(),
|
|
||||||
})
|
})
|
||||||
.nullable(),
|
.nullable(),
|
||||||
}),
|
}),
|
||||||
@@ -62,7 +61,7 @@ export const userRouter = createTRPCRouter({
|
|||||||
return {
|
return {
|
||||||
...result,
|
...result,
|
||||||
image: imageUrl,
|
image: imageUrl,
|
||||||
apiKey: apiKey ?? null,
|
apiKey: apiKey ? { id: apiKey.id, prefix: apiKey.prefix } : null,
|
||||||
};
|
};
|
||||||
}),
|
}),
|
||||||
update: protectedProcedure
|
update: protectedProcedure
|
||||||
|
|||||||
Reference in New Issue
Block a user