add option to get ban status from user info

This commit is contained in:
Ajay Ramachandran
2021-08-05 20:11:05 -04:00
parent 326f9e6e93
commit 71c01c0f3b
3 changed files with 46 additions and 4 deletions

View File

@@ -616,7 +616,7 @@ export async function postSkipSegments(req: Request, res: Response): Promise<Res
// }
//check to see if this user is shadowbanned
const shadowBanRow = await db.prepare("get", `SELECT count(*) as "userCount" FROM "shadowBannedUsers" WHERE "userID" = ?`, [userID]);
const shadowBanRow = await db.prepare("get", `SELECT count(*) as "userCount" FROM "shadowBannedUsers" WHERE "userID" = ? LIMIT 1`, [userID]);
let shadowBanned = shadowBanRow.userCount;