From 7d8d9a4a45648044a061ad4abc9d6f8a771728ba Mon Sep 17 00:00:00 2001 From: Mansehej Singh Date: Thu, 30 Jul 2020 02:43:36 +0530 Subject: [PATCH] Serialize Yjs type before callback --- bin/callback.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/callback.js b/bin/callback.js index 1bc0444..2390b74 100644 --- a/bin/callback.js +++ b/bin/callback.js @@ -22,7 +22,7 @@ exports.callbackHandler = (update, origin, doc) => { const sharedObjectType = CALLBACK_OBJECTS[sharedObjectName] dataToSend.data[sharedObjectName] = { type: sharedObjectType, - content: getContent(sharedObjectName, sharedObjectType, doc) + content: getContent(sharedObjectName, sharedObjectType, doc).toJSON() } }) callbackRequest(CALLBACK_URL, CALLBACK_TIMEOUT, dataToSend)