From cd258b5d276c92a3816a230043a05f99d2eed595 Mon Sep 17 00:00:00 2001 From: Matthew Joseph Martin Date: Wed, 1 Jul 2020 14:28:52 +0700 Subject: [PATCH] Revert "Fix loading models with json columns" --- lib/loader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/loader.js b/lib/loader.js index e76ceec..7e4dd42 100644 --- a/lib/loader.js +++ b/lib/loader.js @@ -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