@chevre/domain 25.2.0-alpha.20 → 25.2.0-alpha.21

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.
@@ -323,7 +323,10 @@ class OrderInTransactionRepo extends acceptedOfferInReserve_1.AcceptedOfferInRes
323
323
  _id: { $eq: params.id },
324
324
  typeOf: { $eq: factory_1.factory.transactionType.PlaceOrder },
325
325
  status: { $eq: factory_1.factory.transactionStatusType.InProgress }
326
- }, { 'object.paymentMethods': 1 })
326
+ }, {
327
+ 'object.paymentMethods': 1,
328
+ _id: 0
329
+ })
327
330
  .lean()
328
331
  .exec();
329
332
  if (doc === null) {
@@ -338,7 +341,10 @@ class OrderInTransactionRepo extends acceptedOfferInReserve_1.AcceptedOfferInRes
338
341
  const doc = await this.transactionModel.findOne({
339
342
  _id: { $eq: params.id },
340
343
  typeOf: { $eq: factory_1.factory.transactionType.PlaceOrder }
341
- }, { 'object.paymentMethods': 1 })
344
+ }, {
345
+ 'object.paymentMethods': 1,
346
+ _id: 0
347
+ })
342
348
  .lean()
343
349
  .exec();
344
350
  if (doc === null) {
@@ -347,7 +353,10 @@ class OrderInTransactionRepo extends acceptedOfferInReserve_1.AcceptedOfferInRes
347
353
  const paymentMethodId = doc.object.paymentMethods?.paymentMethodId;
348
354
  if (typeof paymentMethodId === 'string') {
349
355
  // 注文ドキュメントにも発行済の場合、同一性を検証(2026-07-12~)
350
- const orderDoc = await this.orderModel.findOne({ identifier: { $eq: params.id } }, { paymentMethodId: 1 })
356
+ const orderDoc = await this.orderModel.findOne({ identifier: { $eq: params.id } }, {
357
+ paymentMethodId: 1,
358
+ _id: 0
359
+ })
351
360
  .lean()
352
361
  .exec();
353
362
  if (orderDoc === null) {
package/package.json CHANGED
@@ -91,5 +91,5 @@
91
91
  "postversion": "git push origin --tags",
92
92
  "prepublishOnly": "npm run clean && npm run build"
93
93
  },
94
- "version": "25.2.0-alpha.20"
94
+ "version": "25.2.0-alpha.21"
95
95
  }