mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-15 07:57:05 +03:00
Add remove feature to warnUser
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import {db} from '../databases/databases';
|
||||
import { HashedUserID } from '../types/user.model';
|
||||
|
||||
export function isUserVIP(userID: string): boolean {
|
||||
export function isUserVIP(userID: HashedUserID): boolean {
|
||||
return db.prepare('get', "SELECT count(*) as userCount FROM vipUsers WHERE userID = ?", [userID]).userCount > 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user