Fix: API 잘못된 parameter 값 수정
This commit is contained in:
parent
b82000562a
commit
437b3286fd
@ -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);
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user