From 437b3286fd334b972fd793bd8b2c1b9851320304 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=ED=99=8D=EC=B0=BD=EA=B8=B0?= Date: Wed, 2 Oct 2024 21:21:12 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20API=20=EC=9E=98=EB=AA=BB=EB=90=9C=20para?= =?UTF-8?q?meter=20=EA=B0=92=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/api/projectApi.ts | 4 ++-- frontend/src/api/workspaceApi.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/api/projectApi.ts b/frontend/src/api/projectApi.ts index d122996..526b4e5 100644 --- a/frontend/src/api/projectApi.ts +++ b/frontend/src/api/projectApi.ts @@ -5,14 +5,14 @@ export async function getProjectList( workspaceId: number, memberId: number, lastProjectId?: number, - limit: number = 50 + limitPage: number = 50 ) { return api .get(`/workspaces/${workspaceId}/projects`, { params: { memberId, lastProjectId, - limit, + limitPage, }, }) .then(({ data }) => data); diff --git a/frontend/src/api/workspaceApi.ts b/frontend/src/api/workspaceApi.ts index 08480a1..acd31c8 100644 --- a/frontend/src/api/workspaceApi.ts +++ b/frontend/src/api/workspaceApi.ts @@ -8,10 +8,10 @@ import { ReviewStatus, } from '@/types'; -export async function getWorkspaceList(memberId: number, lastWorkspaceId?: number, limit?: number) { +export async function getWorkspaceList(memberId: number, lastWorkspaceId?: number, limitPage: number = 30) { return api .get('/workspaces', { - params: { memberId, lastWorkspaceId, limit }, + params: { memberId, lastWorkspaceId, limitPage }, }) .then(({ data }) => data); }