Commit 08791215 authored by Yoann HOUPERT's avatar Yoann HOUPERT

patch parsing error

parent b2225d85
Pipeline #11513 passed with stage
in 28 seconds
......@@ -58,10 +58,11 @@ const routesFactory = config => {
}
const jsonStr = json.transcript.transcription;
const transcription = JSON.parse(json.transcript.transcription);
let jsonResponse = {};
try {
const transcription = JSON.parse(json.transcript.transcription);
jsonResponse = {
status: 0,
hypotheses: transcription.hypotheses,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment