mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-11 05:57:04 +03:00
add getHashCache where applicable=
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { db } from "../databases/databases";
|
||||
import { getHash } from "../utils/getHash";
|
||||
import { getHashCache } from "../utils/getHashCache";
|
||||
import { Request, Response } from "express";
|
||||
import { config } from "../config";
|
||||
import { Category, Service, VideoID, VideoIDHash } from "../types/segments.model";
|
||||
@@ -28,7 +28,7 @@ export async function shadowBanUser(req: Request, res: Response): Promise<Respon
|
||||
}
|
||||
|
||||
//hash the userID
|
||||
const adminUserID = getHash(adminUserIDInput);
|
||||
const adminUserID = await getHashCache(adminUserIDInput);
|
||||
|
||||
const isVIP = await isUserVIP(adminUserID);
|
||||
if (!isVIP) {
|
||||
|
||||
Reference in New Issue
Block a user