@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.
|
@@ -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