From 880f8e635069f76c1179719dfa167f5d401d745b Mon Sep 17 00:00:00 2001 From: Moe Date: Sat, 27 Mar 2021 06:56:00 -0700 Subject: [PATCH] error catching parse for db row details parsing --- libs/database/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/database/utils.js b/libs/database/utils.js index 90110140..296e4407 100644 --- a/libs/database/utils.js +++ b/libs/database/utils.js @@ -355,7 +355,7 @@ module.exports = function(s,config){ } if(options.parseRowDetails){ r.forEach((row) => { - row.details = JSON.parse(row.details) + row.details = s.parseJSON(row.details,{}) }) } if(options.noCount){