From c19ea7aaa2b061a1adb9e95b305894768285e732 Mon Sep 17 00:00:00 2001 From: Matthew Date: Fri, 2 Aug 2024 23:08:39 -0400 Subject: [PATCH] fix: Remove playlog temporarily --- src/pages/user/[username]/index.jsx | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/pages/user/[username]/index.jsx b/src/pages/user/[username]/index.jsx index 6c1d748..79589de 100644 --- a/src/pages/user/[username]/index.jsx +++ b/src/pages/user/[username]/index.jsx @@ -43,18 +43,6 @@ export const getServerSideProps = withSession(async ({ req, query }) => { isPublic: true, publicOverride: true, banned_user: true, - playlog: { - select: { - game: true, - play_time: true, - play_count: true, - played_on: true - }, - orderBy: { - played_on: 'desc' - }, - distinct: ['game_pk'] - }, game_sessions: { select: { game: true, @@ -100,7 +88,6 @@ export const getServerSideProps = withSession(async ({ req, query }) => { language: loggedInUser?.language || 'en', banReason: JSON.parse(safeJsonStringify(user.banned_user)), event: JSON.parse(safeJsonStringify(event)), - playlog: JSON.parse(safeJsonStringify(user.playlog)), session: JSON.parse(safeJsonStringify(user.game_sessions)) } } @@ -145,7 +132,6 @@ function ProfilePage ({ user, isLoggedIn, banReason, loggedInUser, event, playlo /> - : ''}