Skip to content

Commit

Permalink
fix: omg
Browse files Browse the repository at this point in the history
  • Loading branch information
qin-guan committed Jul 16, 2023
1 parent ce18424 commit 0e27224
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/trpc/routers/survey/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const surveyRouter = router({
}),
).query(async ({ ctx, input }) => {
if (await surveyStorage.hasItem(input.id))
return await surveyStorage.getItem<Survey>(ctx.session.user.id)
return await surveyStorage.getItem<Survey>(input.id)

try {
const survey = await ctx.prisma.survey.findUniqueOrThrow({
Expand Down

0 comments on commit 0e27224

Please sign in to comment.