diff --git a/src/utils/api/gymApplication.ts b/src/utils/api/gymApplication.ts index 178c6378cf06a0b9b97bd540b2b22ca880bcde36..2e14d4da0037490c4e6a8e47e8ce81879c812e6b 100644 --- a/src/utils/api/gymApplication.ts +++ b/src/utils/api/gymApplication.ts @@ -7,7 +7,11 @@ import { GymApplicationSent, } from "../validationSchema/gymApplication"; -export async function getGymApplication(): Promise<GymApplicationReturned[]> { +export async function getGymApplication({ + username, +}: { + username: string; +}): Promise<GymApplicationReturned[]> { // const res = (await axios.get(`${config.NODE_JS_API}/api/job/${username}`, header)); const myPromise = new Promise<GymApplicationFetched[]>(function (myResolve) { myResolve([