Skip to content

Commit

Permalink
fix: Remove playlog temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
matthe815 committed Aug 3, 2024
1 parent 09533fb commit c19ea7a
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/pages/user/[username]/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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))
}
}
Expand Down Expand Up @@ -145,7 +132,6 @@ function ProfilePage ({ user, isLoggedIn, banReason, loggedInUser, event, playlo
/>
</div>

<PlayLog playlog={playlog} current={session} />
</Col>
: ''}

Expand Down

0 comments on commit c19ea7a

Please sign in to comment.