fix: format
This commit is contained in:
@@ -77,11 +77,7 @@ export const getStoredRecording = async (id: string) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
export const checkRunsForRecording = async (id: string): Promise<boolean> => {
|
export const checkRunsForRecording = async (id: string): Promise<boolean> => {
|
||||||
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await axios.get(`${apiUrl}/storage/recordings/${id}/runs`);
|
const response = await axios.get(`${apiUrl}/storage/recordings/${id}/runs`);
|
||||||
|
|
||||||
@@ -94,9 +90,7 @@ export const checkRunsForRecording = async (id: string): Promise<boolean> => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
export const deleteRecordingFromStorage = async (id: string): Promise<boolean> => {
|
export const deleteRecordingFromStorage = async (id: string): Promise<boolean> => {
|
||||||
|
|
||||||
const hasRuns = await checkRunsForRecording(id);
|
const hasRuns = await checkRunsForRecording(id);
|
||||||
|
|
||||||
if (hasRuns) {
|
if (hasRuns) {
|
||||||
@@ -116,10 +110,6 @@ export const deleteRecordingFromStorage = async (id: string): Promise<boolean> =
|
|||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export const deleteRunFromStorage = async (id: string): Promise<boolean> => {
|
export const deleteRunFromStorage = async (id: string): Promise<boolean> => {
|
||||||
|
|||||||
Reference in New Issue
Block a user