mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-18 05:28:27 +03:00
Fix type error
This commit is contained in:
@@ -302,7 +302,7 @@ async function buildSegmentGroups(segments: DBSegment[]): Promise<OverlappingSeg
|
|||||||
currentGroup.votes += segment.votes;
|
currentGroup.votes += segment.votes;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (segment.userID) segment.reputation = Math.min(segment.reputation, await reputationPromises[i]);
|
if (segment.userID) segment.reputation = Math.min(segment.reputation, (await reputationPromises[i]) || Infinity);
|
||||||
if (segment.reputation > 0) {
|
if (segment.reputation > 0) {
|
||||||
currentGroup.reputation += segment.reputation;
|
currentGroup.reputation += segment.reputation;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user