Skip to content

Commit

Permalink
fix: missing host
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Feb 15, 2024
1 parent 735d20b commit a3f4e02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ class CoCreateUser {

let invitee = await this.crud.send({
method: 'object.read',
host: data.host,
array: 'users',
$filter: {
query: { email: data.email },
Expand Down Expand Up @@ -285,7 +286,7 @@ class CoCreateUser {
data.socket = socket
data.object = { _id: object._id, '$addToSet.members': data.user_id }
data = await this.crud.send(data)
this.crud.send({ method: 'object.update', array: 'users', object: { _id: data.user_id, memberAccount: object._id, subscription: '6571fe530c48ef6970900a82' } })
this.crud.send({ method: 'object.update', host: data.host, array: 'users', object: { _id: data.user_id, memberAccount: object._id, subscription: '6571fe530c48ef6970900a82' } })
response.success = true
response.message = "Invite Accepted"
break
Expand Down

0 comments on commit a3f4e02

Please sign in to comment.