@bluedot-innovation/models 7.11.1 → 7.11.2
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 +3 -0
- package/models/Zone.js +0 -11
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/models/Zone.js
CHANGED
|
@@ -121,17 +121,6 @@ let zoneSchema = new Schema({
|
|
|
121
121
|
destinationId: {type: String, validate: { validator: helpers.validateDestinationIdLength, msg: 'destinationId must be less than 129 characters long' }},
|
|
122
122
|
}, {collection: 'zone', autoIndex: false})
|
|
123
123
|
|
|
124
|
-
zoneSchema.index(
|
|
125
|
-
{
|
|
126
|
-
projectId: 1,
|
|
127
|
-
destinationId: 1
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
unique: true,
|
|
131
|
-
partialFilterExpression: { 'destinationId': { $exists:true, $type:"string" } },
|
|
132
|
-
name: "destinationUniqueWithinProject"
|
|
133
|
-
})
|
|
134
|
-
|
|
135
124
|
// Mongoose-json-patch
|
|
136
125
|
// https://www.npmjs.com/package/mongoose-json-patch
|
|
137
126
|
// plugin for PATCH operations
|
package/package.json
CHANGED