Skip to content

Commit

Permalink
[CHORE] #116 : DefaultLocalDateTime -> LocalDateTime.MIN 으로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
tgyuuAn committed Feb 13, 2024
1 parent 60cfc0d commit ee12c3a
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import com.wap.wapp.core.network.constant.ATTENDANCE_COLLECTION
import com.wap.wapp.core.network.model.attendance.AttendanceRequest
import com.wap.wapp.core.network.model.attendance.AttendanceResponse
import com.wap.wapp.core.network.utils.await
import com.wap.wapp.core.network.utils.toISOLocalDateTimeString
import java.time.LocalDateTime
import javax.inject.Inject

class AttendanceDataSourceImpl @Inject constructor(
Expand Down Expand Up @@ -35,8 +37,10 @@ class AttendanceDataSourceImpl @Inject constructor(
.await()

val attendanceResponse = task.toObject<AttendanceResponse>()
attendanceResponse ?: AttendanceResponse(eventId = eventId, "", defaultDeadLine)
attendanceResponse ?: AttendanceResponse(
eventId = eventId,
"",
LocalDateTime.MIN.toISOLocalDateTimeString(),
)
}
}

private val defaultDeadLine = "2000-01-01T00:00:00.000000"

0 comments on commit ee12c3a

Please sign in to comment.