diff --git a/src/EventuallyQueue.js b/src/EventuallyQueue.js index 88df1d3bd..e68c59e4f 100644 --- a/src/EventuallyQueue.js +++ b/src/EventuallyQueue.js @@ -117,7 +117,7 @@ const EventuallyQueue = { queueData[index] = { queueId, action, - object: object.toJSON(), + object: object._getSaveJSON(), serverOptions, id: object.id, className: object.className, diff --git a/src/__tests__/EventuallyQueue-test.js b/src/__tests__/EventuallyQueue-test.js index 3b98d5022..e8fe26d3c 100644 --- a/src/__tests__/EventuallyQueue-test.js +++ b/src/__tests__/EventuallyQueue-test.js @@ -25,6 +25,9 @@ class MockObject { toJSON() { return this.attributes; } + _getSaveJSON() { + return this.attributes; + } static extend(className) { class MockSubclass { constructor() {