mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-22 05:38:55 +00:00
fix crash
This commit is contained in:
parent
754f299a1a
commit
70a2d400e7
1 changed files with 1 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ class RealmTaskLocalRepository(realm: Realm) : RealmBaseLocalRepository(realm),
|
|||
|
||||
override fun getTasks(userId: String): Flow<List<Task>> {
|
||||
if (realm.isClosed) return emptyFlow()
|
||||
return realm.where(Task::class.java).equalTo("userId", userId)
|
||||
return realm.where(Task::class.java).equalTo("ownerID", userId)
|
||||
.sort("position", Sort.ASCENDING, "dateCreated", Sort.DESCENDING)
|
||||
.findAll()
|
||||
.toFlow()
|
||||
|
|
|
|||
Loading…
Reference in a new issue