fix old segment thing

This commit is contained in:
Ajay
2022-04-01 01:37:02 -04:00
parent cdfd5ae3a3
commit 2dddd44537
2 changed files with 1 additions and 12 deletions

View File

@@ -775,17 +775,6 @@ async function sponsorsLookup(id: string, keepOldSubmissions = true) {
sponsorDataFound = true;
// Check if any old submissions should be kept
if (sponsorTimes !== null && keepOldSubmissions) {
for (let i = 0; i < sponsorTimes.length; i++) {
if (sponsorTimes[i].source === SponsorSourceType.Local) {
// This is a user submission, keep it
recievedSegments.push(sponsorTimes[i]);
}
}
}
const oldSegments = sponsorTimes || [];
sponsorTimes = recievedSegments;
if (sponsorTimes) {