From 22c0a1529412c5410c8dddb14b2c7b1d396814a0 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Tue, 15 Oct 2024 22:17:16 +0530 Subject: [PATCH] feat: use binaryOutputService --- server/src/api/record.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/src/api/record.ts b/server/src/api/record.ts index 5b2e8451..d19c7f93 100644 --- a/server/src/api/record.ts +++ b/server/src/api/record.ts @@ -11,6 +11,7 @@ import { createRemoteBrowserForRun, destroyRemoteBrowser } from "../browser-mana import logger from "../logger"; import { browserPool } from "../server"; import { io, Socket } from "socket.io-client"; +import { BinaryOutputService } from "../storage/mino"; const formatRecording = (recordingData: any) => { const recordingMeta = recordingData.recording_meta; @@ -307,6 +308,9 @@ async function executeRun(id: string) { recording.recording, currentPage, plainRun.interpreterSettings ); + const binaryOutputService = new BinaryOutputService('maxun-run-screenshots'); + const uploadedBinaryOutput = await binaryOutputService.uploadAndStoreBinaryOutput(run, interpretationInfo.binaryOutput); + await destroyRemoteBrowser(plainRun.browserId); const updatedRun = await run.update({