Skip to content

Commit

Permalink
Merge pull request #120 from villasv/patch-1
Browse files Browse the repository at this point in the history
Fix loading models with json columns
  • Loading branch information
matmar10 authored Jul 1, 2020
2 parents ac28b2b + 0fc3ffc commit 462cddd
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] = JSON.stringify(data[k]);
where[k] = 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 462cddd

Please sign in to comment.