Skip to content

Commit

Permalink
Only fetch scores with valid beatmap
Browse files Browse the repository at this point in the history
  • Loading branch information
nanaya committed Jan 3, 2023
1 parent df0ed3b commit 8cbaeef
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/Libraries/Score/FetchDedupedScores.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@ public function all(): array
$nextCursor['is_legacy'] = get_bool($nextCursor['is_legacy']);
$search->searchAfter(array_values($nextCursor));
}
$search->response();
$response = $search->response();
$search->assertNoError();

if ($this->append($search->records()->all())) {
$records = $response->records()->whereHas('beatmap.beatmapset')->get()->all();
if ($this->append($records)) {
break;
}

Expand Down

0 comments on commit 8cbaeef

Please sign in to comment.