refactor: rename getUpdatedAtHash to getPreHashForEntities for clarity

This commit is contained in:
Prateek Sunal
2025-06-24 14:38:51 +05:30
parent 4419090831
commit fffb1e2734
2 changed files with 4 additions and 4 deletions

View File

@@ -100,7 +100,7 @@ extension EntitiesDB on FilesDB {
return LocalEntityData.fromJson(maps.first);
}
Future<String?> getUpdatedAtHash(
Future<String?> getPreHashForEntities(
EntityType type,
List<String> ids,
) async {

View File

@@ -221,15 +221,15 @@ class EntityService {
}
}
Future<String?> getUpdatedAtHash(
Future<String?> getPreHashForEntities(
EntityType type,
List<String> ids,
) async {
return await _db.getUpdatedAtHash(type, ids);
return await _db.getPreHashForEntities(type, ids);
}
Future<String> getHashForIds(List<String> personIds) async {
final preHash = await getUpdatedAtHash(EntityType.cgroup, personIds);
final preHash = await getPreHashForEntities(EntityType.cgroup, personIds);
if (preHash == null) {
return "";