Skip to content

A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search

fix: Fix trpc output validation when deleting API keys

MohamedBassem626b9b52a1d8
diff --git a/packages/web/server/api/routers/apiKeys.ts b/packages/web/server/api/routers/apiKeys.ts
index eade5eec..0538a34d 100644
--- a/packages/web/server/api/routers/apiKeys.ts
+++ b/packages/web/server/api/routers/apiKeys.ts
@@ -29,12 +29,10 @@ export const apiKeysAppRouter = router({
id: z.string(),
}),
)
- .output(z.object({}))
.mutation(async ({ input, ctx }) => {
await db
.delete(apiKeys)
- .where(and(eq(apiKeys.id, input.id), eq(apiKeys.userId, ctx.user.id)))
- .returning();
+ .where(and(eq(apiKeys.id, input.id), eq(apiKeys.userId, ctx.user.id)));
}),
list: authedProcedure
.output(