aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/trpc/routers/users.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/trpc/routers/users.ts b/packages/trpc/routers/users.ts
index 71c23a39..abd50d63 100644
--- a/packages/trpc/routers/users.ts
+++ b/packages/trpc/routers/users.ts
@@ -140,10 +140,18 @@ export const usersAppRouter = router({
wrapped: authedProcedure
.output(zWrappedStatsResponseSchema)
.query(async ({ ctx }) => {
+ throw new TRPCError({
+ code: "BAD_REQUEST",
+ message: "This endpoint is currently disabled",
+ });
const user = await User.fromCtx(ctx);
return await user.getWrappedStats(2025);
}),
hasWrapped: authedProcedure.output(z.boolean()).query(async ({ ctx }) => {
+ throw new TRPCError({
+ code: "BAD_REQUEST",
+ message: "This endpoint is currently disabled",
+ });
const user = await User.fromCtx(ctx);
return await user.hasWrapped();
}),