Skip to content

Commit

Permalink
(DOCSP-40225): Node.js Error Handler: Typo Fix (#3367)
Browse files Browse the repository at this point in the history
## Pull Request Info - SDK Docs Consolidation

Jira ticket: https://jira.mongodb.org/browse/DOCSP-40225

### Staging Links
<!-- start insert-links -->
- [Handle Sync Errors -
Node.js](https://deploy-preview-3367--device-sdk.netlify.app/sdk/node/sync/handle-sync-errors/#discard-unsynced-changes-after-breaking-schema-changes)
<!-- end insert-links -->

### Release Notes

- Node.js SDK
- Sync Data/Handle Sync Errors: Correct a parameter in the error handler
code from `error` to `onError`.
  • Loading branch information
dacharyc authored Aug 13, 2024
1 parent 085ab79 commit 8e95e38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/node/legacy/Examples/client-reset.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ describe.skip("Client Reset with Seamless Loss", () => {
// :remove-end:
},
},
error: handleSyncError, // invoked with destructive schema changes
onError: handleSyncError, // invoked with destructive schema changes
},
};
// :snippet-end:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ const config = {
console.log("New realm path", afterRealm.path);
},
},
error: handleSyncError, // invoked with destructive schema changes
onError: handleSyncError, // invoked with destructive schema changes
},
};

0 comments on commit 8e95e38

Please sign in to comment.