Skip to content

Commit

Permalink
Merge pull request #255 from nextcloud/fix/make-disk-file-excalidraw-…
Browse files Browse the repository at this point in the history
…complient

add excalidraw type to whiteboard file
  • Loading branch information
grnd-alt authored Nov 19, 2024
2 parents d4f0cf5 + f32a47e commit 744c5c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion websocket_server/ApiService.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default class ApiService {
console.log(`[${roomID}] Saving room data to server: ${roomData.length} elements, ${Object.keys(files).length} files`)

const url = `${this.NEXTCLOUD_URL}/index.php/apps/whiteboard/${roomID}`
const body = { data: { elements: roomData, files: this.cleanupFiles(roomData, files) } }
const body = { data: { type: 'excalidraw', elements: roomData, files: this.cleanupFiles(roomData, files) } }
const options = this.fetchOptions('PUT', null, body, roomID, lastEditedUser)
return this.fetchData(url, options)
}
Expand Down

0 comments on commit 744c5c0

Please sign in to comment.