Serialize Yjs type before callback
This commit is contained in:
parent
fe0c51375a
commit
7d8d9a4a45
@ -22,7 +22,7 @@ exports.callbackHandler = (update, origin, doc) => {
|
|||||||
const sharedObjectType = CALLBACK_OBJECTS[sharedObjectName]
|
const sharedObjectType = CALLBACK_OBJECTS[sharedObjectName]
|
||||||
dataToSend.data[sharedObjectName] = {
|
dataToSend.data[sharedObjectName] = {
|
||||||
type: sharedObjectType,
|
type: sharedObjectType,
|
||||||
content: getContent(sharedObjectName, sharedObjectType, doc)
|
content: getContent(sharedObjectName, sharedObjectType, doc).toJSON()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
callbackRequest(CALLBACK_URL, CALLBACK_TIMEOUT, dataToSend)
|
callbackRequest(CALLBACK_URL, CALLBACK_TIMEOUT, dataToSend)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user