Change constructor to match docs
This commit is contained in:
parent
16597d5632
commit
d2d99d14a6
|
@ -74,7 +74,7 @@ function Change(options) {
|
|||
};
|
||||
});
|
||||
|
||||
this.operation = options.operation || 'add';
|
||||
this.operation = options.operation || options.type || 'add';
|
||||
this.modification = options.modification || {};
|
||||
}
|
||||
module.exports = Change;
|
||||
|
|
Loading…
Reference in New Issue