@chevre/domain 22.5.0-alpha.29 → 22.5.0-alpha.30

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.
@@ -23,12 +23,12 @@ function wait4payActionDelayIfNeeded(params) {
23
23
  const minIntervalBetweenPayAndRefund = settings.movieticketReserve.minIntervalBetweenPayAndRefund;
24
24
  let waitingNecessary = false;
25
25
  if (typeof minIntervalBetweenPayAndRefund === 'number' && minIntervalBetweenPayAndRefund > 0) {
26
- // if (payAction.actionStatus !== factory.actionStatusType.CompletedActionStatus) {
27
- const payStartExpected = moment()
28
- .add(-minIntervalBetweenPayAndRefund, 'milliseconds');
29
- waitingNecessary = moment(payAction.startDate)
30
- .isAfter(payStartExpected);
31
- // }
26
+ if (payAction.actionStatus !== factory.actionStatusType.CompletedActionStatus) {
27
+ const payStartExpected = moment()
28
+ .add(-minIntervalBetweenPayAndRefund, 'milliseconds');
29
+ waitingNecessary = moment(payAction.startDate)
30
+ .isAfter(payStartExpected);
31
+ }
32
32
  }
33
33
  if (waitingNecessary) {
34
34
  // tslint:disable-next-line:no-console
package/package.json CHANGED
@@ -108,5 +108,5 @@
108
108
  "postversion": "git push origin --tags",
109
109
  "prepublishOnly": "npm run clean && npm run build && npm test && npm run doc"
110
110
  },
111
- "version": "22.5.0-alpha.29"
111
+ "version": "22.5.0-alpha.30"
112
112
  }