From 26f6ebcfc8e5688710a888319567f517d45bea77 Mon Sep 17 00:00:00 2001 From: Owen Simpson Date: Sun, 9 Jun 2024 18:47:22 -0400 Subject: [PATCH] fix contest / week one tag reversed --- src/data-access-layer/player.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data-access-layer/player.ts b/src/data-access-layer/player.ts index ce8f74f..3b231c0 100644 --- a/src/data-access-layer/player.ts +++ b/src/data-access-layer/player.ts @@ -49,8 +49,8 @@ export const getPlayerActivityStats = async (membershipId: bigint | string) => { 'dateCompleted', fastest.date_completed, 'duration', fastest.duration, 'platformType', fastest.platform_type, - 'isDayOne', date_completed < COALESCE(contest_end, TIMESTAMP 'epoch'), - 'isContest', date_completed < COALESCE(day_one_end, TIMESTAMP 'epoch'), + 'isContest', date_completed < COALESCE(contest_end, TIMESTAMP 'epoch'), + 'isDayOne', date_completed < COALESCE(day_one_end, TIMESTAMP 'epoch'), 'isWeekOne', date_completed < COALESCE(week_one_end, TIMESTAMP 'epoch') ) ELSE NULL