From 2c63ab6241df9ceea4733eb7e669a74fc07175df Mon Sep 17 00:00:00 2001 From: problematicconsumer Date: Wed, 6 Mar 2024 21:28:58 +0330 Subject: [PATCH] Change db initialization --- lib/core/database/connection/database_connection.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }); }