mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 09:07:47 +01:00
Don't break with old cached data
This commit is contained in:
parent
52b201ff87
commit
30d0cb7590
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue