Skip to content

Commit

Permalink
style: place schedule ID
Browse files Browse the repository at this point in the history
  • Loading branch information
dhyeonkim committed Aug 20, 2024
1 parent 4918cb0 commit b886325
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class PlaceAdapter(
val placeEntity =
PlaceEntity(
roomUid = roomUid,
scheduleId = scheduleId,
scheduleId = place.id,
place = place,
)
return placeRepository.save(placeEntity).toDomain()
Expand All @@ -39,11 +39,11 @@ class PlaceAdapter(
places: List<Place>,
): List<Place> {
val placeEntities =
places.zip(scheduleIds) { place, scheduleId ->
places.map {
PlaceEntity(
roomUid = roomUid,
scheduleId = scheduleId,
place = place,
scheduleId = it.id,
place = it,
)
}
return placeRepository.saveAll(placeEntities).map { it.toDomain() }
Expand Down

0 comments on commit b886325

Please sign in to comment.