Skip to content

Commit

Permalink
#1538 | Remove double deletion of IdentifierAssignments on restoring …
Browse files Browse the repository at this point in the history
…fast sync
  • Loading branch information
1t5j0y committed Dec 6, 2024
1 parent bfa12c4 commit 7cef7ec
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions packages/openchs-android/src/service/BackupRestoreRealm.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,6 @@ export default class BackupRestoreRealmService extends BaseService {
this._deleteIndividualAndDependentForDirectlyAssignableSubjectTypes();
General.logDebug("BackupRestoreRealmService", "Deleted individual and dependent forDirectlyAssignableSubjectTypes");
})
.then(() => {
this._deleteIdentifierAssignments();
General.logDebug("BackupRestoreRealmService", "Deleted identifier assignments");
})
.then(() => {
General.logDebug("BackupRestoreRealmService", "Personalisation of database complete");
cb(100, "restoreComplete");
Expand Down Expand Up @@ -240,10 +236,6 @@ export default class BackupRestoreRealmService extends BaseService {
});
}

_deleteIdentifierAssignments() {
this._deleteAndResetSync(IdentifierAssignment.schema.name);
}

_restoreSettings(prevSettings) {
this.getService(SettingsService).saveOrUpdate(prevSettings);
}
Expand Down

0 comments on commit 7cef7ec

Please sign in to comment.