@chevre/domain 22.2.0-alpha.14 → 22.2.0-alpha.15

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.
@@ -179,7 +179,10 @@ class PaymentServiceRepo {
179
179
  doc = yield this.paymentServiceModel.findOneAndUpdate({
180
180
  _id: { $eq: params.id },
181
181
  typeOf: { $eq: typeOf }
182
- }, { $set: setFields }, { upsert: false, new: true, projection: { _id: 1, id: { $toString: '$_id' } } })
182
+ }, {
183
+ $set: setFields,
184
+ $unset: params.$unset
185
+ }, { upsert: false, new: true, projection: { _id: 1, id: { $toString: '$_id' } } })
183
186
  .lean()
184
187
  .exec();
185
188
  if (doc === null) {
package/package.json CHANGED
@@ -110,5 +110,5 @@
110
110
  "postversion": "git push origin --tags",
111
111
  "prepublishOnly": "npm run clean && npm run build && npm test && npm run doc"
112
112
  },
113
- "version": "22.2.0-alpha.14"
113
+ "version": "22.2.0-alpha.15"
114
114
  }