Skip to content

Commit

Permalink
Revert "Fix loading models with json columns"
Browse files Browse the repository at this point in the history
  • Loading branch information
matmar10 authored Jul 1, 2020
1 parent 462cddd commit cd258b5
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 cd258b5

Please sign in to comment.