remove transaction hack

This commit is contained in:
Sorunome 2020-06-22 17:27:06 +02:00
parent aea86aaf10
commit 3d40a8d81b
No known key found for this signature in database
GPG Key ID: B19471D07FC9BE9C
1 changed files with 0 additions and 12 deletions

View File

@ -20,18 +20,6 @@ class Database extends _$Database {
int get maxFileSize => 1 * 1024 * 1024;
@override
Future<T> transaction<T>(Future<T> Function() action) async {
try {
await super.transaction(() async {
await customSelect('SELECT 1').get();
});
} catch (_) {
return action();
}
return super.transaction(action);
}
@override
MigrationStrategy get migration => MigrationStrategy(
onCreate: (Migrator m) {