@positivegrid/pg-mongoose-schema 27.2.2-beta.1 → 27.2.2-beta.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/models/promotion.js +2 -2
- package/package.json +1 -1
package/models/promotion.js
CHANGED
|
@@ -152,11 +152,11 @@ module.exports = function (mongoose) {
|
|
|
152
152
|
})
|
|
153
153
|
const allSelectedProduct = []
|
|
154
154
|
if (singletoneProductName.size > 0) {
|
|
155
|
-
allSelectedProduct
|
|
155
|
+
allSelectedProduct.push({
|
|
156
156
|
'device_list': {
|
|
157
157
|
'$in': Array.from(singletoneProductName)
|
|
158
158
|
}
|
|
159
|
-
}
|
|
159
|
+
})
|
|
160
160
|
}
|
|
161
161
|
defaultQuery['$and'].push({
|
|
162
162
|
'$or': [{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@positivegrid/pg-mongoose-schema",
|
|
3
|
-
"version": "27.2.2-beta.
|
|
3
|
+
"version": "27.2.2-beta.2",
|
|
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",
|