mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-13 02:14:32 +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 }[];
|
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
|
// map to object array
|
||||||
const locks = [];
|
const locks = [];
|
||||||
const lockedCategories = [] as string[];
|
|
||||||
const userIDs = new Set();
|
const userIDs = new Set();
|
||||||
// get all locks for video, check if requested later
|
// get all locks for video, check if requested later
|
||||||
for (const lock of row) {
|
for (const lock of row) {
|
||||||
|
@ -54,7 +53,6 @@ export async function getLockReason(req: Request, res: Response): Promise<Respon
|
||||||
userID: lock?.userID || "",
|
userID: lock?.userID || "",
|
||||||
userName: "",
|
userName: "",
|
||||||
} as lockArray);
|
} as lockArray);
|
||||||
lockedCategories.push(lock.category);
|
|
||||||
userIDs.add(lock.userID);
|
userIDs.add(lock.userID);
|
||||||
}
|
}
|
||||||
// all userName from userIDs
|
// all userName from userIDs
|
||||||
|
|
Loading…
Reference in a new issue