12 lines
316 B
TypeScript
12 lines
316 B
TypeScript
import APIClient from '../../functions/APIClient';
|
|
|
|
type TaskNamesType = 'download_pending' | 'update_subscribed' | 'resync_metadata';
|
|
|
|
const updateTaskByName = async (taskName: TaskNamesType) => {
|
|
return APIClient(`/api/task/by-name/${taskName}/`, {
|
|
method: 'POST',
|
|
});
|
|
};
|
|
|
|
export default updateTaskByName;
|