From 2c2e9a290053b06cc5c196c01e75befe11dc8069 Mon Sep 17 00:00:00 2001 From: Michael C Date: Tue, 7 Sep 2021 00:18:15 -0400 Subject: [PATCH] all columns in quotes --- src/routes/getUserStats.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/getUserStats.ts b/src/routes/getUserStats.ts index f2d304f..a1afc62 100644 --- a/src/routes/getUserStats.ts +++ b/src/routes/getUserStats.ts @@ -31,7 +31,7 @@ async function dbGetUserSummary(userID: HashedUserID, categoryStats: boolean, ty ${additionalQuery} count(*) as "segmentCount" FROM "sponsorTimes" - WHERE "userID" = ? AND votes > -2 AND shadowHidden !=1`, + WHERE "userID" = ? AND "votes" > -2 AND "shadowHidden" !=1`, [maxRewardTimePerSegmentInSeconds, maxRewardTimePerSegmentInSeconds, userID]); const source = (row.minutesSaved != null) ? row : {}; const handler = { get: (target: Record, name: string) => target?.[name] || 0 };