From 0e272243a156476fb808389ae343ad8b304fc8bd Mon Sep 17 00:00:00 2001 From: Qin Guan Date: Sun, 16 Jul 2023 15:32:14 +0800 Subject: [PATCH] fix: omg --- server/trpc/routers/survey/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/trpc/routers/survey/index.ts b/server/trpc/routers/survey/index.ts index afc1d5e..a349260 100644 --- a/server/trpc/routers/survey/index.ts +++ b/server/trpc/routers/survey/index.ts @@ -17,7 +17,7 @@ export const surveyRouter = router({ }), ).query(async ({ ctx, input }) => { if (await surveyStorage.hasItem(input.id)) - return await surveyStorage.getItem(ctx.session.user.id) + return await surveyStorage.getItem(input.id) try { const survey = await ctx.prisma.survey.findUniqueOrThrow({