@bluedot-innovation/models 2.0.19-alpha.11 → 2.0.19-alpha.12
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/models/Zone.js +2 -2
- package/package.json +1 -1
package/models/Zone.js
CHANGED
|
@@ -9,7 +9,7 @@ let Schema = mongoose.Schema
|
|
|
9
9
|
let StateEnum = require('@bluedot-innovation/enums').StateEnum
|
|
10
10
|
let messageActionSchema = require('./MessageAction').messageActionSchema
|
|
11
11
|
let urlActionSchema = require('./UrlAction').urlActionSchema
|
|
12
|
-
let circleSchema = require('./geofeatures/Circle').
|
|
12
|
+
let circleSchema = require('./geofeatures/Circle').Schema
|
|
13
13
|
let boundingBoxSchema = require('./geofeatures/BoundingBox').boundingBoxSchema
|
|
14
14
|
let polylineSchema = require('./geofeatures/Polyline').polylineSchema
|
|
15
15
|
let polygonSchema = require('./geofeatures/Polygon').polygonSchema
|
|
@@ -84,7 +84,7 @@ zoneSchema.path('filters').discriminator('speed', new Schema(speedFilterSchema))
|
|
|
84
84
|
zoneSchema.path('filters').discriminator('timeOfDayRange', new Schema(timeOfDayRangeFilterSchema))
|
|
85
85
|
|
|
86
86
|
zoneSchema.path('geofeatures').discriminator('beacon', new Schema(beaconSchema))
|
|
87
|
-
zoneSchema.path('geofeatures').discriminator('circle',
|
|
87
|
+
zoneSchema.path('geofeatures').discriminator('circle', circleSchema)
|
|
88
88
|
zoneSchema.path('geofeatures').discriminator('polygon', new Schema(polygonSchema))
|
|
89
89
|
zoneSchema.path('geofeatures').discriminator('polyline', new Schema(polylineSchema))
|
|
90
90
|
zoneSchema.path('geofeatures').discriminator('boundingBox', new Schema(boundingBoxSchema))
|