Bumfix for BumCode on checkIfProjectManager

This commit is contained in:
al8763be 2024-03-19 20:29:36 +01:00
parent e48bf5d98c
commit 0b6edd359e

View file

@ -112,7 +112,11 @@ export const api: API = {
} }
}, },
async checkIfProjectManager(token: string): Promise<APIResponse<boolean>> { async checkIfProjectManager(
username: string,
projectName: string,
token: string,
): Promise<APIResponse<boolean>> {
try { try {
const response = await fetch("/api/checkIfProjectManager", { const response = await fetch("/api/checkIfProjectManager", {
method: "GET", method: "GET",
@ -120,6 +124,7 @@ export const api: API = {
"Content-Type": "application/json", "Content-Type": "application/json",
Authorization: "Bearer " + token, Authorization: "Bearer " + token,
}, },
body: JSON.stringify({ username, projectName }),
}); });
if (!response.ok) { if (!response.ok) {