From 74eafaa0a4d8e3b18f54c63743bcdf63d0e7f89d Mon Sep 17 00:00:00 2001 From: dacharyc Date: Tue, 13 Aug 2024 16:14:04 -0400 Subject: [PATCH] Fix typo in code example --- examples/node/legacy/Examples/client-reset.js | 2 +- ...discard-unsynced-changes-after-destructive-schema-changes.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/node/legacy/Examples/client-reset.js b/examples/node/legacy/Examples/client-reset.js index bd5263f64c..885fc1a47d 100644 --- a/examples/node/legacy/Examples/client-reset.js +++ b/examples/node/legacy/Examples/client-reset.js @@ -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: diff --git a/source/examples/generated/node/client-reset.snippet.discard-unsynced-changes-after-destructive-schema-changes.js b/source/examples/generated/node/client-reset.snippet.discard-unsynced-changes-after-destructive-schema-changes.js index f65ea3e57f..e3f78da803 100644 --- a/source/examples/generated/node/client-reset.snippet.discard-unsynced-changes-after-destructive-schema-changes.js +++ b/source/examples/generated/node/client-reset.snippet.discard-unsynced-changes-after-destructive-schema-changes.js @@ -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 }, };