mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-11 22:17:14 +03:00
8 lines
322 B
TypeScript
8 lines
322 B
TypeScript
import { db } from "../databases/databases";
|
|
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]))?.userCount > 0;
|
|
}
|