Skip to content

Commit 5fd72e4

Browse files
authored
Merge pull request #19 from KyleLilly/json_insert_fix
Remove code which transforms stringified array into array
2 parents dda5c7b + e24ecb8 commit 5fd72e4

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

lib/util.js

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -335,16 +335,8 @@ const Util = {
335335
* Cast values to the correct type
336336
*/
337337
castValues (values) {
338-
return _.map(values, value => {
339-
if (_.isString(value) && value[0] === '[') {
340-
let arr = JSON.parse(value)
341-
if (_.isArray(arr)) {
342-
return arr
343-
}
344-
}
345-
346-
return value
347-
})
338+
// No special handling currently
339+
return values;
348340
},
349341

350342
castResultRows (rows, schema) {

0 commit comments

Comments
 (0)