@bluedot-innovation/models 2.0.19-alpha.14 → 2.0.19-alpha.16
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/ZoneBeacon.js
CHANGED
|
@@ -14,10 +14,10 @@ schema.proximity = {
|
|
|
14
14
|
const ZoneBeaconSchema = new mongoose.Schema(schema)
|
|
15
15
|
|
|
16
16
|
// optional mongoose
|
|
17
|
-
let
|
|
17
|
+
let ZoneBeaconModel = (mongooseInstance) => {
|
|
18
18
|
const instance = mongooseInstance || mongoose
|
|
19
19
|
return instance.model('ZoneBeacon', ZoneBeaconSchema)
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
// Exports Mongoose Model, Mongoose Schema, JSON schema (required locally for discriminators)
|
|
23
|
-
module.exports = { Model:
|
|
23
|
+
module.exports = { Model: ZoneBeaconModel, Schema: ZoneBeaconSchema, rawSchema: schema }
|
|
@@ -80,7 +80,7 @@ function validateBeaconType (v, magicCallback) {
|
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
// optional mongoose
|
|
83
|
-
let
|
|
83
|
+
let BeaconModel = (mongooseInstance) => {
|
|
84
84
|
const instance = mongooseInstance || mongoose
|
|
85
85
|
let Beacon = instance.model('Beacon', BeaconSchema)
|
|
86
86
|
|
|
@@ -90,5 +90,6 @@ let model = (mongooseInstance) => {
|
|
|
90
90
|
|
|
91
91
|
return Beacon
|
|
92
92
|
}
|
|
93
|
+
|
|
93
94
|
// Exports Mongoose Model, Mongoose Schema, JSON schema (required locally for discriminators)
|
|
94
|
-
module.exports = { Model:
|
|
95
|
+
module.exports = { Model: BeaconModel, Schema: BeaconSchema, rawSchema: schema }
|
package/package.json
CHANGED