diff --git a/src/routes/shadowBanUser.ts b/src/routes/shadowBanUser.ts index 5100958..3ecb653 100644 --- a/src/routes/shadowBanUser.ts +++ b/src/routes/shadowBanUser.ts @@ -3,14 +3,14 @@ import {getHash} from "../utils/getHash"; import {Request, Response} from "express"; import { config } from "../config"; import { Category, Service, VideoID, VideoIDHash } from "../types/segments.model"; -import { HashedUserID, UserID } from "../types/user.model"; +import { UserID } from "../types/user.model"; import { QueryCacher } from "../utils/queryCacher"; import { isUserVIP } from "../utils/isUserVIP"; export async function shadowBanUser(req: Request, res: Response): Promise { - const userID = req.query.userID as string; + const userID = req.query.userID as UserID; const hashedIP = req.query.hashedIP as string; - let adminUserIDInput = req.query.adminUserID as string; + const adminUserIDInput = req.query.adminUserID as UserID; const enabled = req.query.enabled === undefined ? true @@ -28,9 +28,9 @@ export async function shadowBanUser(req: Request, res: Response): Promise