From ec94d92e11cbc1ddca7dd80dd6a46063e1b6ec77 Mon Sep 17 00:00:00 2001 From: Alex Baker Date: Sun, 30 Jun 2024 00:02:51 -0500 Subject: [PATCH] Change transaction type to immediate --- .../commonMain/kotlin/org/tasks/data/RoomDatabaseExtensions.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/src/commonMain/kotlin/org/tasks/data/RoomDatabaseExtensions.kt b/data/src/commonMain/kotlin/org/tasks/data/RoomDatabaseExtensions.kt index 17eeecb5f..f561572bb 100644 --- a/data/src/commonMain/kotlin/org/tasks/data/RoomDatabaseExtensions.kt +++ b/data/src/commonMain/kotlin/org/tasks/data/RoomDatabaseExtensions.kt @@ -9,7 +9,7 @@ import androidx.sqlite.SQLiteStatement suspend fun RoomDatabase.withTransaction(block: suspend TransactionScope.() -> T): T = useWriterConnection { transactor -> - transactor.withTransaction(Transactor.SQLiteTransactionType.DEFERRED) { + transactor.withTransaction(Transactor.SQLiteTransactionType.IMMEDIATE) { block() } }