@chevre/domain 21.2.0-alpha.10 → 21.2.0-alpha.11

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.
@@ -88,6 +88,7 @@ export declare class MongoRepository {
88
88
  id: string;
89
89
  object?: {
90
90
  name?: string;
91
+ dateOnTransactionStatusChangedEmitted?: Date;
91
92
  };
92
93
  }): Promise<void>;
93
94
  /**
@@ -384,14 +384,16 @@ class MongoRepository {
384
384
  * 注文名称など
385
385
  */
386
386
  updateObject(params) {
387
- var _a;
387
+ var _a, _b;
388
388
  return __awaiter(this, void 0, void 0, function* () {
389
389
  const doc = yield this.transactionModel.findOneAndUpdate({
390
390
  _id: params.id,
391
391
  typeOf: params.typeOf,
392
392
  status: factory.transactionStatusType.InProgress
393
393
  }, {
394
- $set: Object.assign({}, (typeof ((_a = params.object) === null || _a === void 0 ? void 0 : _a.name) === 'string') ? { 'object.name': params.object.name } : undefined)
394
+ $set: Object.assign(Object.assign({}, (typeof ((_a = params.object) === null || _a === void 0 ? void 0 : _a.name) === 'string') ? { 'object.name': params.object.name } : undefined), (((_b = params.object) === null || _b === void 0 ? void 0 : _b.dateOnTransactionStatusChangedEmitted) instanceof Date)
395
+ ? { 'object.dateOnTransactionStatusChangedEmitted': params.object.dateOnTransactionStatusChangedEmitted }
396
+ : undefined)
395
397
  }, {
396
398
  projection: { _id: 1 }
397
399
  })
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.10"
120
+ "version": "21.2.0-alpha.11"
121
121
  }