From f5155ed2a4fae8483d4587e55c349c1a2f94bee4 Mon Sep 17 00:00:00 2001 From: nickkdoesstuff <69115738+nickkdoesstuff@users.noreply.github.com> Date: Mon, 2 Jan 2023 10:41:07 +0000 Subject: [PATCH 1/2] Update views.tsx --- pages/workspace/[id]/views.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/workspace/[id]/views.tsx b/pages/workspace/[id]/views.tsx index 198b01f..5034ebe 100644 --- a/pages/workspace/[id]/views.tsx +++ b/pages/workspace/[id]/views.tsx @@ -117,7 +117,7 @@ export const getServerSideProps = withPermissionCheckSsr(async ({ params }: GetS computedUsers.push({ info: { - userId: user.userid, + userId: Number(user.userid), username: user.username, }, book: user.book, From d8e4ffce86131713d3c66b3512076d3d7525414a Mon Sep 17 00:00:00 2001 From: nickkdoesstuff <69115738+nickkdoesstuff@users.noreply.github.com> Date: Mon, 2 Jan 2023 16:36:46 +0000 Subject: [PATCH 2/2] 500 fixes --- pages/workspace/[id]/views.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/workspace/[id]/views.tsx b/pages/workspace/[id]/views.tsx index 5034ebe..f763d23 100644 --- a/pages/workspace/[id]/views.tsx +++ b/pages/workspace/[id]/views.tsx @@ -102,7 +102,7 @@ export const getServerSideProps = withPermissionCheckSsr(async ({ params }: GetS const ims: number[] = []; allActivity.filter((x: any) => BigInt(x.userId) == user.userid).forEach((s: any) => { - ims.push(s.idleTime) + ims.push(Number(s.idleTime)) }) const sh: any[] = []