Mega recruitment pipeline overhaul
This commit is contained in:
@@ -74,7 +74,7 @@ export enum ApplicationStatus {
|
||||
const addr = import.meta.env.VITE_APIHOST;
|
||||
|
||||
export async function loadApplication(id: number | string): Promise<ApplicationFull | null> {
|
||||
const res = await fetch(`${addr}/application/${id}`)
|
||||
const res = await fetch(`${addr}/application/${id}`, { credentials: 'include' })
|
||||
if (res.status === 204) return null
|
||||
if (!res.ok) throw new Error('Failed to load application')
|
||||
const json = await res.json()
|
||||
|
||||
Reference in New Issue
Block a user