Replaces doWithRealm with writeAsync

This commit is contained in:
ericdecanini 2022-04-20 10:55:06 +02:00
parent abe07c73a4
commit 90b063f0de

View file

@ -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)
}
}