Skip to content

Commit

Permalink
fix(@aws-amplify/datastore): keep syncing when subs disabled (#7987)
Browse files Browse the repository at this point in the history
  • Loading branch information
iartemiev authored Mar 24, 2021
1 parent dd98afb commit 0e8968f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/datastore/src/sync/processors/subscription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,10 @@ class SubscriptionProcessor {
subscriptionReadyCallback();
}

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

Expand Down

0 comments on commit 0e8968f

Please sign in to comment.