@bluedot-innovation/models 2.0.19-alpha.8 → 2.0.19-alpha.9

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.
Files changed (2) hide show
  1. package/models/Zone.js +2 -5
  2. package/package.json +1 -1
package/models/Zone.js CHANGED
@@ -28,11 +28,7 @@ const mongooseHidden = require('mongoose-hidden')({defaultHidden: {
28
28
  creationTime: true,
29
29
  lastUpdateTime: true,
30
30
  __v: true,
31
- secret: true,
32
- geofeatures: {
33
- creationTime: true,
34
- lastUpdateTime: true
35
- }
31
+ secret: true
36
32
  }})
37
33
 
38
34
  // ////// //
@@ -99,6 +95,7 @@ zoneSchema.path('geofeatures').discriminator('boundingBox', new Schema(boundingB
99
95
  // TODO: Test patcher and include for other schemas if required
100
96
  zoneSchema.plugin(patcher)
101
97
  zoneSchema.plugin(mongooseHidden)
98
+ zoneSchema.path('geofeatures').plugin(mongooseHidden)
102
99
 
103
100
  // optional mongoose
104
101
  const model = (mongooseInstance) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluedot-innovation/models",
3
- "version": "2.0.19-alpha.8",
3
+ "version": "2.0.19-alpha.9",
4
4
  "description": "",
5
5
  "main": "Models.js",
6
6
  "scripts": {