Replaces doWithRealm with writeAsync
This commit is contained in:
parent
abe07c73a4
commit
90b063f0de
@ -93,7 +93,7 @@ internal class SyncResponsePostTreatmentAggregatorHandler @Inject constructor(
|
||||
|
||||
private fun List<User>.saveLocally() {
|
||||
val userEntities = map { user -> UserEntityFactory.create(user) }
|
||||
monarchy.doWithRealm {
|
||||
monarchy.writeAsync {
|
||||
it.insertOrUpdate(userEntities)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user