reload study chapters on broadcast game end

pull/8432/head
Thibault Duplessis 2021-03-20 19:17:22 +01:00
parent fccb971764
commit ff2656ffc7
2 changed files with 2 additions and 2 deletions

View File

@ -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 =>

View File

@ -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)
}