@positivegrid/pg-mongoose-schema 27.0.0 → 27.1.0

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/preset.js +3 -0
  2. package/package.json +1 -1
package/models/preset.js CHANGED
@@ -522,6 +522,9 @@ module.exports = function (mongoose) {
522
522
  if (_.has(req.query, 'signal_chain_type')) {
523
523
  searchCondition.signal_chain_type = req.query.signal_chain_type
524
524
  }
525
+ if (_.has(req.query, 'no_dspid')) {
526
+ searchCondition['preset_meta.dspId'] = { $nin: String(req.query.no_dspid).split(',') }
527
+ }
525
528
  }
526
529
 
527
530
  searchCondition = _handlePresetVersion(searchCondition, req)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@positivegrid/pg-mongoose-schema",
3
- "version": "27.0.0",
3
+ "version": "27.1.0",
4
4
  "description": "Positive Grid mongoose schema",
5
5
  "author": "Ferrari Lee <shiyung@positivegrid.com>",
6
6
  "homepage": "https://git.positivegrid.com:8443/backend/pg-mongoose-schema",