Fix loading challenge tasks

This commit is contained in:
Phillip Thelen 2023-03-06 18:32:35 +01:00
parent 488d02ef1f
commit c98efbe140

View file

@ -52,7 +52,7 @@ class RealmChallengeLocalRepository(realm: Realm) : RealmBaseLocalRepository(rea
override fun getTasks(challengeID: String): Flow<List<Task>> {
return realm.where(Task::class.java)
.equalTo("userId", challengeID)
.equalTo("ownerID", challengeID)
.findAll()
.toFlow()
.filter { realmObject -> realmObject.isLoaded }