Skip to content

Commit

Permalink
fix: recover more
Browse files Browse the repository at this point in the history
  • Loading branch information
mxdvl committed Jun 13, 2024
1 parent 9b52695 commit 8206492
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions sport/app/football/controllers/FixturesController.scala
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ class FixturesController(
contentApiClient
.getResponse(contentApiClient.item(id, edition))
.map(_.interactive.map(InteractiveAtom.make(_)))
.recover{ case _ => None}
.map(renderMatchList(page, fixtures, filters, _))
case _ =>
Future.successful(renderMatchList(page, fixtures, filters, None))
Expand Down
1 change: 1 addition & 0 deletions sport/app/football/controllers/MatchDayController.scala
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ class MatchDayController(
contentApiClient
.getResponse(contentApiClient.item(id, edition))
.map(_.interactive.map(InteractiveAtom.make(_)))
.recover{ case _ => None}
.map(renderMatchList(page, matches, filters, _))
} else Future.successful(renderMatchList(page, matches, filters, None))
}
Expand Down

0 comments on commit 8206492

Please sign in to comment.