Skip to content

Commit

Permalink
Fix parsing of params in graphql
Browse files Browse the repository at this point in the history
  • Loading branch information
c-w committed Feb 8, 2018
1 parent a2fa8ac commit d8c5e13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions project-fortis-services/src/resolvers/Settings/queries.js
Expand Up @@ -113,9 +113,9 @@ function cassandraRowToStream(row) {

let params;
try {
params = params ? JSON.parse(row.params_json) : {};
params = row.params_json ? JSON.parse(row.params_json) : {};
} catch (err) {
console.error(`Unable to parse params ${row.params_json}'' for stream ${row.streamid}`);
console.error(`Unable to parse params '${row.params_json}' for stream ${row.streamid}`);
params = {};
}

Expand Down

0 comments on commit d8c5e13

Please sign in to comment.