@cocreate/users 1.36.0 → 1.36.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/src/server.js +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.36.1](https://github.com/CoCreate-app/CoCreate-users/compare/v1.36.0...v1.36.1) (2024-02-15)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* missing host ([a3f4e02](https://github.com/CoCreate-app/CoCreate-users/commit/a3f4e02f4a52e0f03ddd890484a6c6a838f8945b))
|
|
7
|
+
|
|
1
8
|
# [1.36.0](https://github.com/CoCreate-app/CoCreate-users/compare/v1.35.1...v1.36.0) (2024-02-15)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
package/src/server.js
CHANGED
|
@@ -171,6 +171,7 @@ class CoCreateUser {
|
|
|
171
171
|
|
|
172
172
|
let invitee = await this.crud.send({
|
|
173
173
|
method: 'object.read',
|
|
174
|
+
host: data.host,
|
|
174
175
|
array: 'users',
|
|
175
176
|
$filter: {
|
|
176
177
|
query: { email: data.email },
|
|
@@ -285,7 +286,7 @@ class CoCreateUser {
|
|
|
285
286
|
data.socket = socket
|
|
286
287
|
data.object = { _id: object._id, '$addToSet.members': data.user_id }
|
|
287
288
|
data = await this.crud.send(data)
|
|
288
|
-
this.crud.send({ method: 'object.update', array: 'users', object: { _id: data.user_id, memberAccount: object._id, subscription: '6571fe530c48ef6970900a82' } })
|
|
289
|
+
this.crud.send({ method: 'object.update', host: data.host, array: 'users', object: { _id: data.user_id, memberAccount: object._id, subscription: '6571fe530c48ef6970900a82' } })
|
|
289
290
|
response.success = true
|
|
290
291
|
response.message = "Invite Accepted"
|
|
291
292
|
break
|