diff options
author | theia | 2022-08-01 15:02:33 -0400 |
---|---|---|
committer | theia | 2022-08-01 15:02:33 -0400 |
commit | 38ca42741bd3e27f0954bb11e81729dd8f7806e9 (patch) | |
tree | 54a8d8098525e416df462b3e6ffd29ae7087c2e3 | |
parent | 387c3834fc0f73f248b57b95d93340cb0846da9c (diff) |
delete->remove serverside
-rw-r--r-- | src/socket.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/socket.js b/src/socket.js index be17304..59834d8 100644 --- a/src/socket.js +++ b/src/socket.js @@ -94,7 +94,7 @@ export default class { messageEvent.data = data this.eventTarget.dispatchEvent(messageEvent) - } else if (['updates', 'deletes'].includes(data.type)) { + } else if (['updates', 'removes'].includes(data.type)) { // Subscription data if (data.queryID in this.subscriptionData) { const sd = this.subscriptionData[data.queryID] @@ -131,7 +131,7 @@ export default class { async remove(objectID) { await this.request({ - type: "delete", + type: "remove", objectID }) } |