upd: task

Deskripsi:
- remove anggota
- profil anggota

No Issues
This commit is contained in:
amel
2024-08-20 14:46:07 +08:00
parent f090af8f7d
commit e3b7379559
3 changed files with 136 additions and 8 deletions

View File

@@ -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}`, {