Skip to content

Commit

Permalink
fix: fix broken typeof check
Browse files Browse the repository at this point in the history
  • Loading branch information
ephys committed Mar 13, 2022
1 parent c08a568 commit 3219fa2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/model.js
Expand Up @@ -2979,7 +2979,7 @@ class Model {
if (include.association.through.model.rawAttributes[attr]._autoGenerated
|| attr === include.association.foreignKey
|| attr === include.association.otherKey
|| typeof associationInstance[include.association.through.model.name][attr] === undefined) {
|| typeof associationInstance[include.association.through.model.name][attr] === 'undefined') {
continue;
}

Expand Down Expand Up @@ -4300,7 +4300,7 @@ class Model {
if (include.association.through.model.rawAttributes[attr]._autoGenerated
|| attr === include.association.foreignKey
|| attr === include.association.otherKey
|| typeof instance[include.association.through.model.name][attr] === undefined) {
|| typeof instance[include.association.through.model.name][attr] === 'undefined') {
continue;
}

Expand Down

0 comments on commit 3219fa2

Please sign in to comment.