This commit is contained in:
Andrei Vereha 2022-05-10 18:48:12 +02:00
parent 2c94ff01c5
commit 31ccb9a7d4

View file

@ -51,7 +51,7 @@ class DashHistory @Inject constructor(
resolvedAt: Long? = null
): Single<Long> = Single.defer {
var id: Long = 0
if (dao.first() != null) {
if (dao.first() == null) {
id = currentTimeMillis()
}
when {