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