@positivegrid/pg-mongoose-schema 27.1.2 → 27.1.3

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 +2 -0
  2. package/package.json +1 -1
package/models/preset.js CHANGED
@@ -758,6 +758,8 @@ module.exports = function (mongoose) {
758
758
  if (_.has(query, 'no_dspid')) {
759
759
  defaultPresetCondition['preset.preset_meta.dspId'] = { '$nin': String(query.no_dspid).split(',') }
760
760
  filterQuery = _.omit(query, ['no_dspid'])
761
+ } else {
762
+ filterQuery = _.clone(query)
761
763
  }
762
764
 
763
765
  const aggregateQuery = [{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@positivegrid/pg-mongoose-schema",
3
- "version": "27.1.2",
3
+ "version": "27.1.3",
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",