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({