Skip to content

Commit

Permalink
#1149 | Correct the updatedSyncSource value returned vy syncService.s…
Browse files Browse the repository at this point in the history
…ync()
  • Loading branch information
himeshr committed Oct 27, 2023
1 parent 99353db commit 8f4ff91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/openchs-android/src/service/SyncService.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class SyncService extends BaseService {
.then(() => this.clearDataIn([RuleFailureTelemetry]))
.then(() => this.downloadNewsImages())
.then(() => {
return isOnlyUploadRequired;
return updatedSyncSource;
});

// Even blank dataServerSync with no data in or out takes quite a while.
Expand Down
2 changes: 1 addition & 1 deletion packages/openchs-android/src/views/SyncComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class SyncComponent extends AbstractComponent {
_postSync() {
this.setState({syncStarted: false});
this.dispatchAction(SyncActions.POST_SYNC);
this.context.getService(SyncService).resetServicesAfterFullSyncCompletion(SyncService.syncSources.BACKGROUND_JOB);
this.context.getService(SyncService).resetServicesAfterFullSyncCompletion(SyncService.syncSources.SYNC_BUTTON);
General.logInfo(this.viewName(), 'Sync completed dispatching reset');
}

Expand Down

0 comments on commit 8f4ff91

Please sign in to comment.