@cocreate/users 1.36.4 → 1.36.5
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 +10 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.36.5](https://github.com/CoCreate-app/CoCreate-users/compare/v1.36.4...v1.36.5) (2024-02-16)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* temp updateDB solution ([40d3db1](https://github.com/CoCreate-app/CoCreate-users/commit/40d3db15c02655bb0908375ec0f32436d793b36c))
|
|
7
|
+
|
|
1
8
|
## [1.36.4](https://github.com/CoCreate-app/CoCreate-users/compare/v1.36.3...v1.36.4) (2024-02-16)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
package/src/server.js
CHANGED
|
@@ -164,9 +164,12 @@ class CoCreateUser {
|
|
|
164
164
|
data.method = 'object.update'
|
|
165
165
|
data.array = "users"
|
|
166
166
|
data.object = { _id: data.user_id, '$push.invitations': inviteId, '$addToSet.members': data.email }
|
|
167
|
+
|
|
168
|
+
// TODO: upodateDB is a temp solution to by pass crud.sync clientId as all crud methods are ignored fro same clientid except for read
|
|
167
169
|
data.updateDB = true
|
|
170
|
+
|
|
168
171
|
data = await this.crud.send(data)
|
|
169
|
-
|
|
172
|
+
|
|
170
173
|
|
|
171
174
|
let invitee = await this.crud.send({
|
|
172
175
|
method: 'object.read',
|
|
@@ -263,11 +266,14 @@ class CoCreateUser {
|
|
|
263
266
|
data.$filter = {
|
|
264
267
|
query: {
|
|
265
268
|
invitations: { $in: [data.token] },
|
|
266
|
-
members: { $in: [data.email] }
|
|
267
|
-
|
|
268
|
-
|
|
269
|
+
members: { $in: [data.email] }
|
|
270
|
+
},
|
|
271
|
+
limit: 2
|
|
269
272
|
}
|
|
270
273
|
|
|
274
|
+
// TODO: upodateDB is a temp solution to by pass crud.sync clientId as all crud methods are ignored fro same clientid except for read
|
|
275
|
+
data.updateDB = true
|
|
276
|
+
|
|
271
277
|
data = await this.crud.send(data)
|
|
272
278
|
|
|
273
279
|
let response = {
|