Fix deleteFile events

Previously when deleting a file, I received:
```json
{ jsonrpc: '2.0', error: 'Message misses parameters', id: 1 }
```

This was due to the missing `server` parameter that is required when sending a `deleteFile` event. This PR just adds in the missing parameter.
This commit is contained in:
James 2022-09-28 16:29:08 -04:00 committed by GitHub
parent da4b9d2bb2
commit 798c240e70
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,6 +22,7 @@ export function fileRemovalEventToMsg({ path }) {
"jsonrpc": "2.0", "jsonrpc": "2.0",
"method": "deleteFile", "method": "deleteFile",
"params": { "params": {
"server": "home",
"filename": path, "filename": path,
}, },
"id": messageCounter++ "id": messageCounter++
@ -53,4 +54,4 @@ function addLeadingSlash(path){
return `/${path}` return `/${path}`
else else
return path return path
} }