mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-16 08:26:59 +03:00
Don't use replica for is vip
This commit is contained in:
@@ -3,5 +3,5 @@ import { HashedUserID } from "../types/user.model";
|
|||||||
|
|
||||||
export async function isUserVIP(userID: HashedUserID): Promise<boolean> {
|
export async function isUserVIP(userID: HashedUserID): Promise<boolean> {
|
||||||
return (await db.prepare("get", `SELECT count(*) as "userCount" FROM "vipUsers" WHERE "userID" = ? LIMIT 1`,
|
return (await db.prepare("get", `SELECT count(*) as "userCount" FROM "vipUsers" WHERE "userID" = ? LIMIT 1`,
|
||||||
[userID], { useReplica: true }))?.userCount > 0;
|
[userID]))?.userCount > 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user