Fix: API 잘못된 parameter 값 수정

This commit is contained in:
홍창기 2024-10-02 21:21:12 +09:00
parent b82000562a
commit 437b3286fd
2 changed files with 4 additions and 4 deletions

View File

@ -5,14 +5,14 @@ export async function getProjectList(
workspaceId: number,
memberId: number,
lastProjectId?: number,
limit: number = 50
limitPage: number = 50
) {
return api
.get<ProjectResponse[]>(`/workspaces/${workspaceId}/projects`, {
params: {
memberId,
lastProjectId,
limit,
limitPage,
},
})
.then(({ data }) => data);

View File

@ -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<WorkspaceListResponse>('/workspaces', {
params: { memberId, lastWorkspaceId, limit },
params: { memberId, lastWorkspaceId, limitPage },
})
.then(({ data }) => data);
}