Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mob] Use sqlite async for getting all indexed fileIDs

laurenspriem9c09af54b38e
diff --git a/mobile/lib/face/db.dart b/mobile/lib/face/db.dart
index 62dc8f8f55..4ec8ce4eb8 100644
--- a/mobile/lib/face/db.dart
+++ b/mobile/lib/face/db.dart
@@ -125,8 +125,8 @@ class FaceMLDataDB {
/// Returns a map of fileID to the indexed ML version
Future<Map<int, int>> getIndexedFileIds() async {
- final db = await instance.database;
- final List<Map<String, dynamic>> maps = await db.rawQuery(
+ final db = await instance.sqliteAsyncDB;
+ final List<Map<String, dynamic>> maps = await db.getAll(
'SELECT $fileIDColumn, $mlVersionColumn FROM $facesTable',
);
final Map<int, int> result = {};