Skip to content

Commit 71ef3dd

Browse files
authored
Merge pull request #1201 from strongloop/fix/options-propagation-2x
Fix HasOne.update to propagate options arg
2 parents f6c054e + 839a2c6 commit 71ef3dd

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
@@ -1745,7 +1745,7 @@ HasOne.prototype.update = function(targetModelData, options, cb) {
17451745
this.fetch(function(err, targetModel) {
17461746
if (targetModel instanceof ModelBaseClass) {
17471747
delete targetModelData[fk];
1748-
targetModel.updateAttributes(targetModelData, cb);
1748+
targetModel.updateAttributes(targetModelData, options, cb);
17491749
} else {
17501750
cb(new Error(g.f('{{HasOne}} relation %s is empty', definition.name)));
17511751
}

0 commit comments

Comments
 (0)