diff --git a/src/api/storage.ts b/src/api/storage.ts index 054aeee8..2ff1e82a 100644 --- a/src/api/storage.ts +++ b/src/api/storage.ts @@ -60,13 +60,13 @@ export const deleteRunFromStorage = async (id: string): Promise => { } }; -export const editRecordingFromStorage = async (browserId: string, robotId: string): Promise => { +export const editRecordingFromStorage = async (browserId: string, id: string): Promise => { try { - const response = await axios.put(`http://localhost:8080/workflow/${browserId}/${robotId}`); + const response = await axios.put(`http://localhost:8080/workflow/${browserId}/${id}`); if (response.status === 200) { return response.data; } else { - throw new Error(`Couldn't edit stored recording ${robotId}`); + throw new Error(`Couldn't edit stored recording ${id}`); } } catch(error: any) { console.log(error);