We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2c3bc7e + f7d3f33 commit 6b9dc43Copy full SHA for 6b9dc43
oura-library/src/main/kotlin/org/radarbase/oura/user/OuraUser.kt
@@ -23,5 +23,5 @@ data class OuraUser(
23
override val observationKey: ObservationKey = ObservationKey(projectId, userId, sourceId)
24
override val versionedId: String = "$id${version?.let { "#$it" } ?: ""}"
25
26
- fun isComplete() = isAuthorized && startDate.isBefore(endDate) && serviceUserId != null
+ fun isComplete() = isAuthorized && (endDate == null || startDate.isBefore(endDate)) && serviceUserId != null
27
}
0 commit comments