From ad8eb300fc9ee45a486007dbdb0e92e1cd3cecdf Mon Sep 17 00:00:00 2001 From: Hugo Des Date: Tue, 29 Oct 2019 09:26:33 +0100 Subject: [PATCH] =?UTF-8?q?[BUGFIX]=C2=A0Fixed=20unhandled=20error=20when?= =?UTF-8?q?=20trying=20to=20load=20fixtures=20with=20fields=20missing=20on?= =?UTF-8?q?=20a=20model?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/loader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/loader.js b/lib/loader.js index 6ebea15..2c40b4b 100644 --- a/lib/loader.js +++ b/lib/loader.js @@ -246,7 +246,7 @@ Loader.prototype.prepFixtureData = function(data, Model) { if (Model.rawAttributes.hasOwnProperty(key)) { result[key] = val; } else { - this.logger.warn('attribute "' + key +"' not defined on model '" + Model.name + "'."); + self.logger.warn('attribute "' + key +"' not defined on model '" + Model.name + "'."); } } });