Use block transaction API

This commit is contained in:
Jonas Lochmann 2020-06-01 02:00:00 +02:00
parent f8c3667845
commit 7139c87fec
No known key found for this signature in database
GPG key ID: 8B8C9AEE10FA5B36
23 changed files with 59 additions and 176 deletions

View file

@ -35,9 +35,7 @@ object ApplyServerDataStatus {
}
fun applyServerDataStatusSync(status: ServerDataStatus, database: Database, platformIntegration: PlatformIntegration) {
database.beginTransaction()
try {
database.runInTransaction {
run {
// apply ful version until and message
@ -462,10 +460,6 @@ object ApplyServerDataStatus {
)
}
}
database.setTransactionSuccessful()
} finally {
database.endTransaction()
}
}
}