Skip to content

Commit

Permalink
fix(@aws-amplify/datastore): keep syncing when subs disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
iartemiev committed Mar 24, 2021
1 parent dd98afb commit 6f17ea6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/datastore/src/sync/processors/subscription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,12 @@ class SubscriptionProcessor {
return;
}

if (
message.includes('"errorType":"OperationDisabled"')
) {
return;
}

observer.error(message);
},
})
Expand Down

0 comments on commit 6f17ea6

Please sign in to comment.