From 0cf785ef6ec8984cefc45c7b467511ef8e47e4f5 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Tue, 8 Oct 2024 21:16:58 +0530 Subject: [PATCH] feat: remove durStr --- server/src/routes/storage.ts | 9 --------- 1 file changed, 9 deletions(-) diff --git a/server/src/routes/storage.ts b/server/src/routes/storage.ts index 9b1cc059..f96b1786 100644 --- a/server/src/routes/storage.ts +++ b/server/src/routes/storage.ts @@ -170,15 +170,6 @@ router.post('/runs/run/:fileName/:runId', requireSignIn, async (req, res) => { const interpretationInfo = await browser.interpreter.InterpretRecording( parsedRecording.recording, currentPage, parsedRun.interpreterSettings); const duration = Math.round((new Date().getTime() - new Date(parsedRun.startedAt).getTime()) / 1000); - const durString = (() => { - if (duration < 60) { - return `${duration} s`; - } - else { - const minAndS = (duration / 60).toString().split('.'); - return `${minAndS[0]} m ${minAndS[1]} s`; - } - })(); await destroyRemoteBrowser(parsedRun.browserId); const run_meta = { ...parsedRun,