mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-26 01:18:40 +03:00
add getHashCache where applicable=
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { Logger } from "../utils/logger";
|
||||
import { getHash } from "../utils/getHash";
|
||||
import { getHashCache } from "../utils/getHashCache";
|
||||
import { isUserVIP } from "../utils/isUserVIP";
|
||||
import { Request, Response } from "express";
|
||||
import { HashedUserID, UserID } from "../types/user.model";
|
||||
@@ -13,7 +13,7 @@ export async function getIsUserVIP(req: Request, res: Response): Promise<Respons
|
||||
}
|
||||
|
||||
//hash the userID
|
||||
const hashedUserID: HashedUserID = getHash(userID);
|
||||
const hashedUserID: HashedUserID = await getHashCache(userID);
|
||||
|
||||
try {
|
||||
const vipState = await isUserVIP(hashedUserID);
|
||||
|
||||
Reference in New Issue
Block a user