mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-07 12:07:07 +03:00
remove unuse variable
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user