From 31d7263ff15470a0537508928faa6b564ce7e371 Mon Sep 17 00:00:00 2001 From: Timur Ercan Date: Wed, 1 Feb 2023 19:22:01 +0100 Subject: [PATCH] bugfix --- apps/web/pages/documents/[id]/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/pages/documents/[id]/index.tsx b/apps/web/pages/documents/[id]/index.tsx index 1ea875624..b76bbf39c 100644 --- a/apps/web/pages/documents/[id]/index.tsx +++ b/apps/web/pages/documents/[id]/index.tsx @@ -158,8 +158,8 @@ export async function getServerSideProps(context: any) { const document: PrismaDocument = await getDocument( +documentId, - context.res, - context.req + context.req, + context.res ); // todo optimize querys