Updated application acceptance system

This commit is contained in:
2025-12-11 21:43:49 -05:00
parent 97119dec97
commit 0a1704b60b
2 changed files with 10 additions and 9 deletions

View File

@@ -89,7 +89,7 @@ export async function getMyApplication(id: number): Promise<ApplicationFull> {
}
export async function approveApplication(id: Number) {
const res = await fetch(`${addr}/application/approve/${id}`, { method: 'POST' })
const res = await fetch(`${addr}/application/approve/${id}`, { method: 'POST', credentials: 'include' })
if (!res.ok) {
console.error("Something went wrong approving the application")
@@ -97,7 +97,7 @@ export async function approveApplication(id: Number) {
}
export async function denyApplication(id: Number) {
const res = await fetch(`${addr}/application/deny/${id}`, { method: 'POST' })
const res = await fetch(`${addr}/application/deny/${id}`, { method: 'POST', credentials: 'include' })
if (!res.ok) {
console.error("Something went wrong denying the application")