mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 01:02:30 +01:00
remove unuse variable
This commit is contained in:
parent
b715b30ae6
commit
103280ca59
1 changed files with 0 additions and 2 deletions
|
@ -43,7 +43,6 @@ export async function getLockReason(req: Request, res: Response): Promise<Respon
|
|||
const row = await db.prepare("all", 'SELECT "category", "reason", "userID" from "lockCategories" where "videoID" = ?', [videoID]) as {category: Category, reason: string, userID: string }[];
|
||||
// map to object array
|
||||
const locks = [];
|
||||
const lockedCategories = [] as string[];
|
||||
const userIDs = new Set();
|
||||
// get all locks for video, check if requested later
|
||||
for (const lock of row) {
|
||||
|
@ -54,7 +53,6 @@ export async function getLockReason(req: Request, res: Response): Promise<Respon
|
|||
userID: lock?.userID || "",
|
||||
userName: "",
|
||||
} as lockArray);
|
||||
lockedCategories.push(lock.category);
|
||||
userIDs.add(lock.userID);
|
||||
}
|
||||
// all userName from userIDs
|
||||
|
|
Loading…
Reference in a new issue