Skip to content

Commit

Permalink
scala tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Aug 4, 2024
1 parent 1735200 commit c5826ca
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/controllers/RelayRound.scala
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,8 @@ final class RelayRound(
def chapter(ts: String, rs: String, id: RelayRoundId, chapterId: StudyChapterId, embed: Option[String]) =
Open:
WithRoundAndTour(ts, rs, id, chapterId.some): rt =>
env.study.api.byIdWithChapterOrFallback(rt.round.studyId, chapterId).orNotFound {
Found(env.study.api.byIdWithChapterOrFallback(rt.round.studyId, chapterId)):
doShow(rt, _, embed)
}

def push(id: RelayRoundId) = ScopedBody(parse.tolerantText)(Seq(_.Study.Write)) { ctx ?=> me ?=>
Found(env.relay.api.byIdWithTourAndStudy(id)): rt =>
Expand Down

0 comments on commit c5826ca

Please sign in to comment.