mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-08 20:47:02 +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;
|
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) {
|
if (segment.reputation > 0) {
|
||||||
currentGroup.reputation += segment.reputation;
|
currentGroup.reputation += segment.reputation;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user