minor refactor

This commit is contained in:
Neeraj Gupta 2022-08-25 16:15:08 +05:30
parent e221b20ad8
commit 91122c6a9c
No known key found for this signature in database
GPG key ID: 3C5A1684DC1729E1

View file

@ -111,7 +111,8 @@ extension DeviceFiles on FilesDB {
}
Future<Set<String>> getDevicePathIDs() async {
final rows = await (await database).rawQuery(
final Database db = await database;
final rows = await db.rawQuery(
'''
SELECT id FROM device_path_collections
''',
@ -153,6 +154,7 @@ extension DeviceFiles on FilesDB {
}
}
// add the mappings for localIDs
debugPrint("Insert pathToLocalIDs mapping while importing localAssets");
await insertPathIDToLocalIDMapping(pathIDToLocalIDsMap);
} catch (e) {
_logger.severe("failed to save path names", e);