Skip to content

Commit cd602af

Browse files
committed
add excalidraw type to whiteboard file
Signed-off-by: grnd-alt <[email protected]>
1 parent bb9014a commit cd602af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

websocket_server/ApiService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export default class ApiService {
5959
console.log(`[${roomID}] Saving room data to server: ${roomData.length} elements, ${Object.keys(files).length} files`)
6060

6161
const url = `${this.NEXTCLOUD_URL}/index.php/apps/whiteboard/${roomID}`
62-
const body = { data: { elements: roomData, files: this.cleanupFiles(roomData, files) } }
62+
const body = { data: { type: "excalidraw", elements: roomData, files: this.cleanupFiles(roomData, files) } }
6363
const options = this.fetchOptions('PUT', null, body, roomID, lastEditedUser)
6464
return this.fetchData(url, options)
6565
}

0 commit comments

Comments
 (0)