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, workspaceId: number,
memberId: number, memberId: number,
lastProjectId?: number, lastProjectId?: number,
limit: number = 50 limitPage: number = 50
) { ) {
return api return api
.get<ProjectResponse[]>(`/workspaces/${workspaceId}/projects`, { .get<ProjectResponse[]>(`/workspaces/${workspaceId}/projects`, {
params: { params: {
memberId, memberId,
lastProjectId, lastProjectId,
limit, limitPage,
}, },
}) })
.then(({ data }) => data); .then(({ data }) => data);

View File

@ -8,10 +8,10 @@ import {
ReviewStatus, ReviewStatus,
} from '@/types'; } 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 return api
.get<WorkspaceListResponse>('/workspaces', { .get<WorkspaceListResponse>('/workspaces', {
params: { memberId, lastWorkspaceId, limit }, params: { memberId, lastWorkspaceId, limitPage },
}) })
.then(({ data }) => data); .then(({ data }) => data);
} }