From d4a7345b8a6569dd644041c243dc6241e77d60a3 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Mon, 3 Aug 2020 13:28:30 +0000 Subject: [PATCH] Enable transactions again to fix web --- lib/src/database/database.dart | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lib/src/database/database.dart b/lib/src/database/database.dart index 3b148ec..adb9fc6 100644 --- a/lib/src/database/database.dart +++ b/lib/src/database/database.dart @@ -22,13 +22,6 @@ class Database extends _$Database { int get maxFileSize => 1 * 1024 * 1024; - // moor transactions are sometimes rather weird and freeze. Until there is a - // proper fix in moor we override that there aren't actually using transactions - @override - Future transaction(Future Function() action) async { - return action(); - } - @override MigrationStrategy get migration => MigrationStrategy( onCreate: (Migrator m) {