@chevre/domain 21.29.0-alpha.16 → 21.29.0-alpha.17
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.
|
@@ -109,7 +109,7 @@ class MongoRepository {
|
|
|
109
109
|
let doc;
|
|
110
110
|
if (typeof params.id === 'string') {
|
|
111
111
|
// 上書き禁止属性を除外
|
|
112
|
-
const _a = params.$set, { id, project, typeOf
|
|
112
|
+
const _a = params.$set, { id, project, typeOf } = _a, setFields = __rest(_a, ["id", "project", "typeOf"]);
|
|
113
113
|
doc = yield this.productModelModel.findOneAndUpdate({ _id: { $eq: params.id } }, {
|
|
114
114
|
$set: setFields
|
|
115
115
|
// $unset: params.$unset
|
package/package.json
CHANGED