From 1da761b5ea69699e8e46063f9007841c694f51e7 Mon Sep 17 00:00:00 2001 From: Fatih20 <fnri39@protonmail.com> Date: Fri, 17 Nov 2023 14:29:10 +0700 Subject: [PATCH] Add username to get gym. --- src/utils/api/gymApplication.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/utils/api/gymApplication.ts b/src/utils/api/gymApplication.ts index 178c637..2e14d4d 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([ -- GitLab