feat: use binaryOutputService
This commit is contained in:
@@ -11,6 +11,7 @@ import { createRemoteBrowserForRun, destroyRemoteBrowser } from "../browser-mana
|
|||||||
import logger from "../logger";
|
import logger from "../logger";
|
||||||
import { browserPool } from "../server";
|
import { browserPool } from "../server";
|
||||||
import { io, Socket } from "socket.io-client";
|
import { io, Socket } from "socket.io-client";
|
||||||
|
import { BinaryOutputService } from "../storage/mino";
|
||||||
|
|
||||||
const formatRecording = (recordingData: any) => {
|
const formatRecording = (recordingData: any) => {
|
||||||
const recordingMeta = recordingData.recording_meta;
|
const recordingMeta = recordingData.recording_meta;
|
||||||
@@ -307,6 +308,9 @@ async function executeRun(id: string) {
|
|||||||
recording.recording, currentPage, plainRun.interpreterSettings
|
recording.recording, currentPage, plainRun.interpreterSettings
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const binaryOutputService = new BinaryOutputService('maxun-run-screenshots');
|
||||||
|
const uploadedBinaryOutput = await binaryOutputService.uploadAndStoreBinaryOutput(run, interpretationInfo.binaryOutput);
|
||||||
|
|
||||||
await destroyRemoteBrowser(plainRun.browserId);
|
await destroyRemoteBrowser(plainRun.browserId);
|
||||||
|
|
||||||
const updatedRun = await run.update({
|
const updatedRun = await run.update({
|
||||||
|
|||||||
Reference in New Issue
Block a user