@bluedot-innovation/models 2.0.19-alpha.51 → 2.0.19-alpha.52

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,5 +1,6 @@
1
1
  ## 2.0.19
2
2
  - Allow "immediate" on proximity field in beacons.
3
+ -
3
4
 
4
5
  ## 2.0.18
5
6
  - `password` on `user` model no longer required. We will rely on cognito to throw an error
package/models/Circle.js CHANGED
@@ -16,16 +16,13 @@ let schema = {
16
16
  state: {type: String, default: StateEnum.active, select: false}
17
17
  }
18
18
 
19
- let CircleSchema = new mongoose.Schema(
20
- schema,
21
- {
22
- _id: false,
23
- __v: false
24
- })
19
+ let CircleSchema = new mongoose.Schema(schema, {
20
+ _id: false,
21
+ __v: false
22
+ }, { retainKeyOrder: true })
25
23
 
26
24
  CircleSchema.add({
27
- type:
28
- {type: String, required: true}
25
+ type: {type: String, required: true}
29
26
  })
30
27
 
31
28
  // optional mongoose
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluedot-innovation/models",
3
- "version": "2.0.19-alpha.51",
3
+ "version": "2.0.19-alpha.52",
4
4
  "description": "",
5
5
  "main": "Models.js",
6
6
  "scripts": {