mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-27 01:48:33 +03:00
all columns in quotes
This commit is contained in:
@@ -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 };
|
||||||
|
|||||||
Reference in New Issue
Block a user