Don't use replica for is vip

This commit is contained in:
Ajay
2022-08-22 11:59:08 -04:00
parent dad205e729
commit 44d541bafe

View File

@@ -3,5 +3,5 @@ import { HashedUserID } from "../types/user.model";
export async function isUserVIP(userID: HashedUserID): Promise<boolean> {
return (await db.prepare("get", `SELECT count(*) as "userCount" FROM "vipUsers" WHERE "userID" = ? LIMIT 1`,
[userID], { useReplica: true }))?.userCount > 0;
[userID]))?.userCount > 0;
}