@cocreate/users 1.36.2 → 1.36.3

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 CHANGED
@@ -1,3 +1,10 @@
1
+ ## [1.36.3](https://github.com/CoCreate-app/CoCreate-users/compare/v1.36.2...v1.36.3) (2024-02-16)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * socket and limit handling ([b700208](https://github.com/CoCreate-app/CoCreate-users/commit/b700208286629b4f5bef0b7e4a14d7767f69eb21))
7
+
1
8
  ## [1.36.2](https://github.com/CoCreate-app/CoCreate-users/compare/v1.36.1...v1.36.2) (2024-02-15)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/users",
3
- "version": "1.36.2",
3
+ "version": "1.36.3",
4
4
  "description": "A simple users component in vanilla javascript. Easily configured using HTML5 attributes and/or JavaScript API.",
5
5
  "keywords": [
6
6
  "users",
package/src/server.js CHANGED
@@ -261,9 +261,9 @@ class CoCreateUser {
261
261
  data.object = { '$pull.invitations': data.token, '$pull.members': data.email }
262
262
  data.$filter = {
263
263
  query: {
264
- // invites: { $in: [data.token] },
264
+ // invitations: { $in: [data.token] },
265
265
  members: { $in: [data.email] },
266
- limit: 1
266
+ limit: 2
267
267
  }
268
268
  }
269
269
 
@@ -282,7 +282,6 @@ class CoCreateUser {
282
282
  for (let object of data.object) {
283
283
  if (object._id) {
284
284
  delete data.$filter
285
- data.socket = socket
286
285
  data.object = { _id: object._id, '$addToSet.members': data.user_id }
287
286
  data = await this.crud.send(data)
288
287
  this.crud.send({ method: 'object.update', host: data.host, array: 'users', object: { _id: data.user_id, memberAccount: object._id, subscription: '6571fe530c48ef6970900a82' } })