Skip to content

Commit

Permalink
Merge pull request #121 from domasx2/revert-120-patch-1
Browse files Browse the repository at this point in the history
Revert "Fix loading models with json columns"
  • Loading branch information
matmar10 committed Jul 1, 2020
2 parents 462cddd + cd258b5 commit d4bb345
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 @@ -85,7 +85,7 @@ Loader.prototype.loadFixture = function(fixture, models) {
where[k] = {};
where[k][Op.contains] = data[k];
} else if (fieldType === 'JSON') {
where[k] = data[k];
where[k] = JSON.stringify(data[k]);
} else if (Model.rawAttributes[k].hasOwnProperty('set') && !ignoreSet) {
var val = null;
// create a simulated setDataValue method, which is commonly
Expand Down

0 comments on commit d4bb345

Please sign in to comment.