From 22047cd81479c8f9dc4ae2b65bbca5863b7889e8 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Thu, 19 Sep 2024 09:18:50 +0530 Subject: [PATCH] feat: set browserID to parsed run browserID --- server/src/routes/storage.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/routes/storage.ts b/server/src/routes/storage.ts index 11ccdcfc..bdecccc3 100644 --- a/server/src/routes/storage.ts +++ b/server/src/routes/storage.ts @@ -146,7 +146,7 @@ router.post('/runs/run/:fileName/:runId', async (req, res) => { try { const recording = await readFile(`./../storage/recordings/${req.params.fileName}.waw.json`) const parsedRecording = JSON.parse(recording); - + const run = await readFile(`./../storage/runs/${req.params.fileName}_${req.params.runId}.json`) const parsedRun = JSON.parse(run); @@ -172,7 +172,7 @@ router.post('/runs/run/:fileName/:runId', async (req, res) => { status: interpretationInfo.result, finishedAt: new Date().toLocaleString(), duration: durString, - browserId: null, + browserId: parsedRun.browserId, log: interpretationInfo.log.join('\n'), serializableOutput: interpretationInfo.serializableOutput, binaryOutput: interpretationInfo.binaryOutput,