models/change: fix typo
This commit is contained in:
parent
555d48f4e0
commit
087c602669
|
@ -609,7 +609,7 @@ Conflict.prototype.changes = function(cb) {
|
||||||
Conflict.prototype.resolve = function(cb) {
|
Conflict.prototype.resolve = function(cb) {
|
||||||
var conflict = this;
|
var conflict = this;
|
||||||
conflict.changes(function(err, sourceChange, targetChange) {
|
conflict.changes(function(err, sourceChange, targetChange) {
|
||||||
if(err) return callback(err);
|
if(err) return cb(err);
|
||||||
sourceChange.prev = targetChange.rev;
|
sourceChange.prev = targetChange.rev;
|
||||||
sourceChange.save(cb);
|
sourceChange.save(cb);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue