cambios en datastage
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
// Consultar el estado de un task por task_id
|
||||
export async function fetchTaskStatus(task_id) {
|
||||
const url = `${import.meta.env.VITE_EFC_API_URL}/datastage/datastages/task-status/?task_id=${encodeURIComponent(task_id)}`;
|
||||
const res = await getWithAuth(url);
|
||||
if (!res.ok) throw new Error('Error al consultar el estado del task');
|
||||
return res.json();
|
||||
}
|
||||
|
||||
import.meta.env;
|
||||
import { getWithAuth, postWithAuth, patchWithAuth, deleteWithAuth } from '../fetchWithAuth';
|
||||
|
||||
Reference in New Issue
Block a user