feat(tasks): retry failed project tasks
This commit is contained in:
@@ -20,3 +20,8 @@ export const getProjectTasks = async (projectId: string): Promise<ProjectTaskIte
|
||||
const response = await apiClient.get(`/projects/${projectId}/tasks`);
|
||||
return response.data.items;
|
||||
};
|
||||
|
||||
export const retryProjectTask = async (taskType: string, sourceId: string): Promise<ProjectTaskItem> => {
|
||||
const response = await apiClient.post(`/tasks/${taskType}/${sourceId}/retry`);
|
||||
return response.data;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user