diff --git a/lib/core/database/connection/database_connection.dart b/lib/core/database/connection/database_connection.dart index 046a44f4..16cffb43 100644 --- a/lib/core/database/connection/database_connection.dart +++ b/lib/core/database/connection/database_connection.dart @@ -9,6 +9,6 @@ LazyDatabase openConnection() { return LazyDatabase(() async { final dbDir = await AppDirectories.getDatabaseDirectory(); final file = File(p.join(dbDir.path, 'db.sqlite')); - return NativeDatabase.createInBackground(file); + return NativeDatabase(file); }); }