From 3219fa20776d69d2f7c100a77f05ed54f20afc44 Mon Sep 17 00:00:00 2001 From: ephys Date: Sun, 13 Mar 2022 11:59:43 +0100 Subject: [PATCH] fix: fix broken typeof check --- src/model.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/model.js b/src/model.js index 051d8d2bb3b6..eef43d15cb33 100644 --- a/src/model.js +++ b/src/model.js @@ -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; } @@ -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; }