Serialize Yjs type before callback

This commit is contained in:
Mansehej Singh 2020-07-30 02:43:36 +05:30
parent fe0c51375a
commit 7d8d9a4a45

View File

@ -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)