@chevre/domain 21.2.0-alpha.89 → 21.2.0-alpha.90

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.
@@ -929,7 +929,7 @@ class MongoRepository {
929
929
  return __awaiter(this, void 0, void 0, function* () {
930
930
  const confirmedReservation = yield this.reservationModel.findOneAndUpdate({ _id: { $eq: params.reservation.id } }, {
931
931
  $setOnInsert: Object.assign(Object.assign(Object.assign({}, params.reservation), { _id: params.reservation.id, reservationFor: params.reservationFor, reservationStatus: factory.reservationStatusType.ReservationConfirmed, modifiedTime: new Date() }), (params.underName !== undefined) ? { underName: params.underName } : undefined)
932
- }, { new: true })
932
+ }, { upsert: true, new: true })
933
933
  .select({ _id: 1 })
934
934
  .exec();
935
935
  debug('confirmByIdIfNotExist processed.confirmedReservation:', confirmedReservation);
@@ -326,19 +326,20 @@ function authorize(params) {
326
326
  }
327
327
  // 即時に決済取引を中止するか?(2023-02-03~)
328
328
  if (params.useCancelPayTransactionOnFailed) {
329
- // tslint:disable-next-line:no-suspicious-comment
330
- // TODO abortエラーの場合は状態不明なので即時中止しない
329
+ // abortエラーの場合は状態不明なので即時中止しない(2023-06-01~)
331
330
  // {
332
331
  // "type": "aborted",
333
332
  // "message": "The user aborted a request.",
334
333
  // "name": "AbortError"
335
334
  // }
336
- yield processVoidPayTransaction({
337
- project: action.project,
338
- agent: { id: action.project.id },
339
- id: action.id,
340
- purpose: action.purpose
341
- })(repos);
335
+ if (error.name !== 'AbortError') {
336
+ yield processVoidPayTransaction({
337
+ project: action.project,
338
+ agent: { id: action.project.id },
339
+ id: action.id,
340
+ purpose: action.purpose
341
+ })(repos);
342
+ }
342
343
  }
343
344
  throw error;
344
345
  }
package/package.json CHANGED
@@ -117,5 +117,5 @@
117
117
  "postversion": "git push origin --tags",
118
118
  "prepublishOnly": "npm run clean && npm run build && npm test && npm run doc"
119
119
  },
120
- "version": "21.2.0-alpha.89"
120
+ "version": "21.2.0-alpha.90"
121
121
  }