Skip to content

Commit

Permalink
[BUGFIX] Fixed unhandled error when trying to load fixtures with fiel…
Browse files Browse the repository at this point in the history
…ds missing on a model
  • Loading branch information
Hugo Des committed Oct 29, 2019
1 parent 10d64f0 commit ad8eb30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 + "'.");
}
}
});
Expand Down

0 comments on commit ad8eb30

Please sign in to comment.