Skip to content

Commit 44d541b

Browse files
committed
Don't use replica for is vip
1 parent dad205e commit 44d541b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/isUserVIP.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ import { HashedUserID } from "../types/user.model";
33

44
export async function isUserVIP(userID: HashedUserID): Promise<boolean> {
55
return (await db.prepare("get", `SELECT count(*) as "userCount" FROM "vipUsers" WHERE "userID" = ? LIMIT 1`,
6-
[userID], { useReplica: true }))?.userCount > 0;
6+
[userID]))?.userCount > 0;
77
}

0 commit comments

Comments
 (0)