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 {
const response = await fetch("/api/checkIfProjectManager", {
method: "GET",
@ -120,6 +124,7 @@ export const api: API = {
"Content-Type": "application/json",
Authorization: "Bearer " + token,
},
body: JSON.stringify({ username, projectName }),
});
if (!response.ok) {