mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-06 11:36:58 +03:00
Don't break with old cached data
This commit is contained in:
@@ -224,7 +224,7 @@ async function chooseSegments(segments: DBSegment[], max: number): Promise<DBSeg
|
||||
currentGroup.votes += segment.votes;
|
||||
}
|
||||
|
||||
segment.reputation = Math.min(segment.reputation, await getReputation(segment.userID));
|
||||
if (segment.userID) segment.reputation = Math.min(segment.reputation, await getReputation(segment.userID));
|
||||
if (segment.reputation > 0) {
|
||||
currentGroup.reputation += segment.reputation;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user