Skip to content

Commit

Permalink
Merge pull request #291 from msupply-foundation/develop
Browse files Browse the repository at this point in the history
Re-order temperature_log and temperature_breach integration sync
  • Loading branch information
jmbrunskill authored Feb 12, 2024
2 parents 49834f9 + 0573ba2 commit 7abfbcc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/features/Sync/SyncSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,13 +282,13 @@ function* syncAll({
try {
yield put(SyncAction.syncSensors(`${serverUrl}/${ENDPOINT.SENSOR}`));
yield take([SyncAction.syncSensorsSuccess, SyncAction.syncSensorsFailure]);
yield put(SyncAction.syncTemperatureLogs(`${serverUrl}/${ENDPOINT.TEMPERATURE_LOG}`));
yield take([SyncAction.syncTemperatureLogsSuccess, SyncAction.syncTemperatureLogsFailure]);
yield put(SyncAction.syncTemperatureBreaches(`${serverUrl}/${ENDPOINT.TEMPERATURE_BREACH}`));
yield take([
SyncAction.syncTemperatureBreachesSuccess,
SyncAction.syncTemperatureBreachesFailure,
]);
yield put(SyncAction.syncTemperatureLogs(`${serverUrl}/${ENDPOINT.TEMPERATURE_LOG}`));
yield take([SyncAction.syncTemperatureLogsSuccess, SyncAction.syncTemperatureLogsFailure]);
yield put(SettingAction.update('lastSync', utils.now()));
} catch (e) {
console.error('syncAll error', e);
Expand Down

0 comments on commit 7abfbcc

Please sign in to comment.