reload study chapters on broadcast game end
parent
fccb971764
commit
ff2656ffc7
|
@ -134,7 +134,7 @@ final private class RelaySync(
|
|||
studyId = study.id,
|
||||
chapterId = chapterId,
|
||||
userId = study.ownerId
|
||||
)
|
||||
) >>- studyApi.reloadChapters(study)
|
||||
|
||||
private def createChapter(study: Study, game: RelayGame): Fu[Chapter] =
|
||||
chapterRepo.nextOrderByStudy(study.id) flatMap { order =>
|
||||
|
|
|
@ -852,7 +852,7 @@ final class StudyApi(
|
|||
private def reloadSriBecauseOf(study: Study, sri: Sri, chapterId: Chapter.Id) =
|
||||
sendTo(study.id)(_.reloadSriBecauseOf(sri, chapterId))
|
||||
|
||||
private def reloadChapters(study: Study) =
|
||||
def reloadChapters(study: Study) =
|
||||
chapterRepo.orderedMetadataByStudy(study.id).foreach { chapters =>
|
||||
sendTo(study.id)(_ reloadChapters chapters)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue