Skip to content

Commit

Permalink
fix: update method to use object.update etc
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Oct 30, 2023
1 parent 26bdfa5 commit af004b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ self.addEventListener('push', (event) => {
// Handle WebSocket events
socket.addEventListener('open', () => {
// The WebSocket connection is open, send the message to the server
socket.send(JSON.stringify({ method: 'read.object', array: 'files', object: { _id }, uid: '' }));
socket.send(JSON.stringify({ method: 'object.read', array: 'files', object: { _id }, uid: '' }));
});

socket.addEventListener('message', (event) => {
Expand Down

0 comments on commit af004b5

Please sign in to comment.