Skip to content

Commit fd0ae75

Browse files
refactor: set date time in findBy repository method as nullable
1 parent 7019d60 commit fd0ae75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/main/kotlin/usecase/repository/RoomRepository.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ interface RoomRepository {
2929
fun deleteRoom(roomId: RoomID): Boolean
3030

3131
/**
32-
* Find a room by its [roomId] and get its data in a specific [dateTime].
32+
* Find a room by its [roomId] and get its data in a specific [dateTime] if specified.
3333
* @return the room if present, null otherwise.
3434
*/
35-
fun findBy(roomId: RoomID, dateTime: Date): Room?
35+
fun findBy(roomId: RoomID, dateTime: Date?): Room?
3636

3737
/**
3838
* Get all the rooms.

0 commit comments

Comments
 (0)