update getLockReason

This commit is contained in:
Michael C
2022-01-07 03:04:47 -05:00
parent 0584492b8c
commit 6ec80df8f4
7 changed files with 74 additions and 31 deletions

View File

@@ -13,7 +13,6 @@ export async function getLockCategories(req: Request, res: Response): Promise<Re
//invalid request
return res.sendStatus(400);
}
try {
// Get existing lock categories markers
const row = await db.prepare("all", 'SELECT "category", "reason", "actionType" from "lockCategories" where "videoID" = ? AND "service" = ?', [videoID, service]) as {category: Category, reason: string, actionType: ActionType}[];