Skip to content

Commit 8f8e2db

Browse files
committed
Fixes not saving associations if no changes (other than associations) are made (#256)
1 parent 7e588a0 commit 8f8e2db

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/Instance.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,9 @@ function Instance(Model, opts) {
113113
}
114114

115115
if (opts.changes.length === 0) {
116-
return saveInstanceExtra(cb);
116+
return saveAssociations(function (err) {
117+
return afterSave(cb, false, err);
118+
});
117119
}
118120

119121
return savePersisted(cb, saveOptions, getInstanceData());

0 commit comments

Comments
 (0)