From e252411fe1e13ef4d950256b56082e0309d5462c Mon Sep 17 00:00:00 2001 From: Ajay Date: Sun, 20 Nov 2022 17:30:13 -0500 Subject: [PATCH] No time saved for chapter --- src/routes/getTopCategoryUsers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/getTopCategoryUsers.ts b/src/routes/getTopCategoryUsers.ts index 877ed2e..74853b3 100644 --- a/src/routes/getTopCategoryUsers.ts +++ b/src/routes/getTopCategoryUsers.ts @@ -34,7 +34,7 @@ async function generateTopCategoryUsersStats(sortBy: string, category: string) { userNames.push(row.userName); viewCounts.push(row.viewCount); totalSubmissions.push(row.totalSubmissions); - minutesSaved.push(row.minutesSaved); + minutesSaved.push(category === "chapter" ? 0 : row.minutesSaved); } }