From 1f36dec81a3bc70a1da6ffc1c96daf4423fbab1a Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Sat, 12 Oct 2024 22:16:23 +0530 Subject: [PATCH] feat: send entire run --- server/src/api/record.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/api/record.ts b/server/src/api/record.ts index aaa34afa..c38c8ae4 100644 --- a/server/src/api/record.ts +++ b/server/src/api/record.ts @@ -307,7 +307,7 @@ async function executeRun(id: string) { await destroyRemoteBrowser(plainRun.browserId); - await run.update({ + const updatedRun = await run.update({ ...run, status: 'success', finishedAt: new Date().toLocaleString(), @@ -319,7 +319,7 @@ async function executeRun(id: string) { return { success: true, - interpretationInfo, + interpretationInfo: updatedRun.toJSON() }; } catch (error: any) {