Skip to content

Commit 0d86289

Browse files
committed
Fix HasOne.update to propagate options arg
1 parent d99dca6 commit 0d86289

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/relation-definition.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1743,7 +1743,7 @@ HasOne.prototype.update = function(targetModelData, options, cb) {
17431743
this.fetch(function(err, targetModel) {
17441744
if (targetModel instanceof ModelBaseClass) {
17451745
delete targetModelData[fk];
1746-
targetModel.updateAttributes(targetModelData, cb);
1746+
targetModel.updateAttributes(targetModelData, options, cb);
17471747
} else {
17481748
cb(new Error(g.f('{{HasOne}} relation %s is empty', definition.name)));
17491749
}

0 commit comments

Comments
 (0)