import fetchWrapper from "../fetchWrapper";
import getXSRFToken from "../getXSRF";

export default async function unAssign(taskId: number): Promise<any> {
    const csrfToken = await getXSRFToken();

    return fetchWrapper(
        "/api/events/task/unassign",
        {task_id: taskId},
        "POST",
        {"X-XSRF-TOKEN": csrfToken}
    );
}
