upd: task
Deskripsi: - remove anggota - profil anggota No Issues
This commit is contained in:
@@ -89,6 +89,17 @@ export const funAddMemberTask = async (path: string, data: IFormAddMemberTask) =
|
||||
return await response.json().catch(() => null);
|
||||
};
|
||||
|
||||
export const funDeleteMemberTask = async (path: string, data: { idUser: string }) => {
|
||||
const response = await fetch(`/api/task/${path}/member`, {
|
||||
method: "DELETE",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
body: JSON.stringify(data),
|
||||
});
|
||||
return await response.json().catch(() => null);
|
||||
};
|
||||
|
||||
|
||||
export const funCancelTask = async (path: string, data: { reason: string }) => {
|
||||
const response = await fetch(`/api/task/${path}`, {
|
||||
|
||||
Reference in New Issue
Block a user