feat: set browserID to parsed run browserID

This commit is contained in:
karishmas6
2024-09-19 09:18:50 +05:30
parent 3dad5a0c41
commit 22047cd814

View File

@@ -146,7 +146,7 @@ router.post('/runs/run/:fileName/:runId', async (req, res) => {
try { try {
const recording = await readFile(`./../storage/recordings/${req.params.fileName}.waw.json`) const recording = await readFile(`./../storage/recordings/${req.params.fileName}.waw.json`)
const parsedRecording = JSON.parse(recording); const parsedRecording = JSON.parse(recording);
const run = await readFile(`./../storage/runs/${req.params.fileName}_${req.params.runId}.json`) const run = await readFile(`./../storage/runs/${req.params.fileName}_${req.params.runId}.json`)
const parsedRun = JSON.parse(run); const parsedRun = JSON.parse(run);
@@ -172,7 +172,7 @@ router.post('/runs/run/:fileName/:runId', async (req, res) => {
status: interpretationInfo.result, status: interpretationInfo.result,
finishedAt: new Date().toLocaleString(), finishedAt: new Date().toLocaleString(),
duration: durString, duration: durString,
browserId: null, browserId: parsedRun.browserId,
log: interpretationInfo.log.join('\n'), log: interpretationInfo.log.join('\n'),
serializableOutput: interpretationInfo.serializableOutput, serializableOutput: interpretationInfo.serializableOutput,
binaryOutput: interpretationInfo.binaryOutput, binaryOutput: interpretationInfo.binaryOutput,