From c8a475aaf1f2e4670ded9ad49d43a6f0e8205b26 Mon Sep 17 00:00:00 2001 From: Vivek Singh Date: Mon, 23 Oct 2023 17:55:10 +0530 Subject: [PATCH] #000 - fixed bug for user with all privileges and sync stopping in between --- .../openchs-android/src/service/EntitySyncStatusService.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/openchs-android/src/service/EntitySyncStatusService.js b/packages/openchs-android/src/service/EntitySyncStatusService.js index b387ec900..ebc27ca1c 100644 --- a/packages/openchs-android/src/service/EntitySyncStatusService.js +++ b/packages/openchs-android/src/service/EntitySyncStatusService.js @@ -110,7 +110,8 @@ class EntitySyncStatusService extends BaseService { removeRevokedPrivileges(entityMetaDataModel, syncDetails) { const hasAllPrivileges = this.getService(PrivilegeService).hasAllPrivileges(); - if (hasAllPrivileges) return; + if (hasAllPrivileges) return [...syncDetails]; + const privilegeEntities = entityMetaDataModel.filter(entity => entity.privilegeParam); const syncDetailsWithPrivilege = [...syncDetails]; privilegeEntities.forEach(entity => {