Skip to content

Commit

Permalink
refactor: (#286) share() -> complete()
Browse files Browse the repository at this point in the history
  • Loading branch information
softpeanut committed Jan 9, 2023
1 parent 11c81ce commit 71a7afc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class ShareHolidayUseCase(
)

val completedHolidays = holidays.map {
it.share()
it.complete()
}

commandHolidayPort.saveAll(completedHolidays)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ data class Holiday(
}
}

fun share() = this.copy(status = HolidayStatus.COMPLETED)
fun complete() = this.copy(status = HolidayStatus.COMPLETED)

fun isSameSpot(spotId: UUID) = this.spotId == spotId

Expand Down

0 comments on commit 71a7afc

Please sign in to comment.