Skip to content

armgit / ente

Public Imported from GitHub
0

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

use diff.length for hasMore check

Abhinavdf29708bc3ff
diff --git a/apps/photos/src/services/entityService.ts b/apps/photos/src/services/entityService.ts
index 4cd21f9714..38367852fc 100644
--- a/apps/photos/src/services/entityService.ts
+++ b/apps/photos/src/services/entityService.ts
@@ -160,7 +160,7 @@ const syncEntity = async <T>(type: EntityType): Promise<Entity<T>> => {
addLogLine(
`Syncing ${type} entities syncedEntitiesCount: ${nonDeletedEntities.length}`
);
- } while (response.hasMore);
+ } while (response.diff.length === DIFF_LIMIT);
} catch (e) {
logError(e, 'Sync entity failed');
}
diff --git a/apps/photos/src/types/entity.ts b/apps/photos/src/types/entity.ts
index 728fe58c37..7252c3767b 100644
--- a/apps/photos/src/types/entity.ts
+++ b/apps/photos/src/types/entity.ts
@@ -44,5 +44,4 @@ export interface Entity<T>
export interface EntitySyncDiffResponse {
diff: EncryptedEntity[];
- hasMore: boolean;
}