From a1c3ab37ef9731a455e7b7b3aa56e71a0353b41c Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Mon, 28 Oct 2024 04:21:05 +0530 Subject: [PATCH] chore: lint --- server/src/api/record.ts | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/server/src/api/record.ts b/server/src/api/record.ts index f7ef7412..23a2f073 100644 --- a/server/src/api/record.ts +++ b/server/src/api/record.ts @@ -329,11 +329,11 @@ async function executeRun(id: string) { distinctId: id, event: 'maxun-oss-run-created-api', properties: { - runId: id, - created_at: new Date().toISOString(), - status: 'success', + runId: id, + created_at: new Date().toISOString(), + status: 'success', } - }) + }) return { success: true, @@ -344,20 +344,20 @@ async function executeRun(id: string) { logger.log('info', `Error while running a recording with id: ${id} - ${error.message}`); const run = await Run.findOne({ where: { runId: id } }); if (run) { - await run.update({ - status: 'failed', - finishedAt: new Date().toLocaleString(), - }); + await run.update({ + status: 'failed', + finishedAt: new Date().toLocaleString(), + }); } captureServerAnalytics.capture({ distinctId: id, event: 'maxun-oss-run-created-api', properties: { - runId: id, - created_at: new Date().toISOString(), - status: 'failed', + runId: id, + created_at: new Date().toISOString(), + status: 'failed', } - }); + }); return { success: false, error: error.message,