fix eslint errors

This commit is contained in:
Michael C
2021-07-04 23:36:47 -04:00
parent 1c116eda3b
commit cef6d5f365
4 changed files with 19 additions and 19 deletions

View File

@@ -14,11 +14,11 @@ export async function getLockCategoriesByHash(req: Request, res: Response): Prom
try {
// Get existing lock categories markers
let lockCategoryList = await db.prepare('all', 'SELECT * from "lockCategories" where "hashedVideoID" LIKE ? ORDER BY videoID', [hashPrefix + '%']) as {videoID: VideoID, userID: UserID,category: Category}[]
const lockCategoryList = await db.prepare('all', 'SELECT * from "lockCategories" where "hashedVideoID" LIKE ? ORDER BY videoID', [hashPrefix + '%']) as {videoID: VideoID, userID: UserID,category: Category}[];
if (lockCategoryList.length === 0 || !lockCategoryList[0]) {
return res.sendStatus(404);
} else {
return res.send(lockCategoryList)
return res.send(lockCategoryList);
}
} catch (err) {
Logger.error(err);