Skip to content

Commit

Permalink
fixing clause, adding OR and unpausing sequential queue
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldoglas committed Sep 15, 2023
1 parent 941fbc9 commit 5029f33
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/libs/actions/OnyxUpdateManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,11 @@ export default () => {
if (
!_.isObject(val) ||
!_.has(val, 'type') ||
!(val.type === CONST.ONYX_UPDATE_TYPES.HTTPS && _.has(val, 'request') && _.has(val, 'response')) &&
!(val.type === CONST.ONYX_UPDATE_TYPES.PUSHER && _.has(val, 'updates'))
(!(val.type === CONST.ONYX_UPDATE_TYPES.HTTPS && _.has(val, 'request') && _.has(val, 'response')) && !(val.type === CONST.ONYX_UPDATE_TYPES.PUSHER && _.has(val, 'updates')))
) {
console.debug('[OnyxUpdateManager] Invalid format found for updates, cleaning and unpausing the queue');
Onyx.set(ONYXKEYS.ONYX_UPDATES_FROM_SERVER, null);
SequentialQueue.unpause();
return;
}

Expand Down

0 comments on commit 5029f33

Please sign in to comment.