From e97f0cee74b13526808aae990c8a9f784634bb9e Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Fri, 13 Sep 2024 08:01:18 +0530 Subject: [PATCH] feat: use interface ScheduleRunSettings --- src/api/storage.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api/storage.ts b/src/api/storage.ts index 01322851..913c7d85 100644 --- a/src/api/storage.ts +++ b/src/api/storage.ts @@ -2,7 +2,7 @@ import { default as axios } from "axios"; import { WorkflowFile } from "maxun-core"; import { RunSettings } from "../components/molecules/RunSettings"; import { ScheduleSettings } from "../components/molecules/ScheduleSettings"; -import { CreateRunResponse } from "../pages/MainPage"; +import { CreateRunResponse, ScheduleRunResponse } from "../pages/MainPage"; export const getStoredRecordings = async (): Promise => { try { @@ -118,7 +118,7 @@ export const notifyAboutAbort = async (fileName: string, runId:string): Promise< } } -export const scheduleStoredRecording = async (fileName: string, settings: ScheduleSettings): Promise => { +export const scheduleStoredRecording = async (fileName: string, settings: ScheduleSettings): Promise => { try { const response = await axios.put( `http://localhost:8080/storage/schedule/${fileName}`, @@ -130,6 +130,6 @@ export const scheduleStoredRecording = async (fileName: string, settings: Schedu } } catch(error: any) { console.log(error); - return {browserId: '', runId: ''}; + return {message: '', runId: ''}; } }