all columns in quotes

This commit is contained in:
Michael C
2021-09-07 00:18:15 -04:00
parent 3d30eea1cb
commit 2c2e9a2900

View File

@@ -31,7 +31,7 @@ async function dbGetUserSummary(userID: HashedUserID, categoryStats: boolean, ty
${additionalQuery} ${additionalQuery}
count(*) as "segmentCount" count(*) as "segmentCount"
FROM "sponsorTimes" FROM "sponsorTimes"
WHERE "userID" = ? AND votes > -2 AND shadowHidden !=1`, WHERE "userID" = ? AND "votes" > -2 AND "shadowHidden" !=1`,
[maxRewardTimePerSegmentInSeconds, maxRewardTimePerSegmentInSeconds, userID]); [maxRewardTimePerSegmentInSeconds, maxRewardTimePerSegmentInSeconds, userID]);
const source = (row.minutesSaved != null) ? row : {}; const source = (row.minutesSaved != null) ? row : {};
const handler = { get: (target: Record<string, any>, name: string) => target?.[name] || 0 }; const handler = { get: (target: Record<string, any>, name: string) => target?.[name] || 0 };