@positivegrid/pg-mongoose-schema 27.7.0 → 27.7.1

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/payment.js CHANGED
@@ -110,6 +110,7 @@ module.exports = (mongoose) => {
110
110
  LicenseSchema.index({ iap_device_id: 1, user_id: 1, product_id: 1, status: 1 })
111
111
  LicenseSchema.index({ user_id: 1, product_id: 1, status: 1, iap_source: 1 })
112
112
  LicenseSchema.index({ from_redeem: 1, user_id: 1 })
113
+ LicenseSchema.index({ user_id: 1, status: 1, due_date: 1, from_free_trial: 1 })
113
114
  LicenseSchema.set('toJSON', {
114
115
  virtuals: true,
115
116
  transform(_doc, ret) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@positivegrid/pg-mongoose-schema",
3
- "version": "27.7.0",
3
+ "version": "27.7.1",
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",