Skip to content

Commit

Permalink
Merge pull request #144 from Fabszn/fix_import_slot_speaker_from_scratch
Browse files Browse the repository at this point in the history
Fix import slot speaker from scratch
  • Loading branch information
Fabszn authored Mar 27, 2024
2 parents 9d2d7d4 + 04dd47f commit e652500
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ object trackService {
yearSlot = CurrentYear(timeUtils.zdt2Year(s.fromDate.value))
)
)
_ <- http.loadRooms flatMap slotRepo.insertRooms
nbLine <- slotRepo.insertSlots(slots)
_ <- slotRepo.insertSpeakers(
cfpslots.flatMap(
cp => mapCpfSpeaker(Slot.Id(s"${cp.cfpSlotId.value}"))(cp.speakers)
)
)
nbLine <- slotRepo.insertSlots(slots)
_ <- http.loadRooms flatMap slotRepo.insertRooms
} yield nbLine

private def mapCpfSpeaker(sId: Slot.Id)(cfpSpeaker: Seq[CfpSpeaker]): Seq[Speaker] =
Expand Down
2 changes: 1 addition & 1 deletion version.sbt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ThisBuild / version := "0.1.9-SNAPSHOT"
ThisBuild / version := "0.1.8-SNAPSHOT"

0 comments on commit e652500

Please sign in to comment.