summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoranonymous2022-09-21 12:46:08 -0400
committeranonymous2022-09-21 12:46:08 -0400
commitd041233b98236ec26fc7150beb23a75cf1d1e54e (patch)
tree54a8d8098525e416df462b3e6ffd29ae7087c2e3
parentbdf04ed4382f153ebf7b80732e7d9c6156ba58a2 (diff)
delete->remove serverside
-rw-r--r--src/socket.js4
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
})
}