Remove logging and fix voting error

This commit is contained in:
Ajay Ramachandran
2021-02-20 22:06:00 -05:00
parent 8c910b67b4
commit eeaa1614fa
2 changed files with 1 additions and 2 deletions

View File

@@ -388,7 +388,7 @@ export async function voteOnSponsorTime(req: Request, res: Response) {
}
// Clear redis cache for this video
redis.delAsync(skipSegmentsKey(row.videoID));
redis.delAsync(skipSegmentsKey(row?.videoID));
//for each positive vote, see if a hidden submission can be shown again
if (incrementAmount > 0 && voteTypeEnum === voteTypes.normal) {