TODO : Kiota 버그 탐구
This commit is contained in:
1 parent
4ec9bf1acf
commit
de24f0dd3f
2 files changed
+10
-3
No files matched your search
@@ -127,8 +127,15 @@ export class PageController {
|
|||||||
@ApiResponse({
|
@ApiResponse({
|
||||||
status: 200,
|
status: 200,
|
||||||
description: '페이지 조회 성공',
|
description: '페이지 조회 성공',
|
||||||
type: PageResponseDto,
|
schema: {
|
||||||
isArray: true
|
oneOf: [
|
||||||
|
{ $ref: '#/components/schemas/PageResponseDto' },
|
||||||
|
{
|
||||||
|
type: 'array',
|
||||||
|
items: { $ref: '#/components/schemas/PageResponseDto' }
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
})
|
})
|
||||||
@ApiBadRequestResponse({ description: 'pageId 또는 spaceId 중 하나는 필수' })
|
@ApiBadRequestResponse({ description: 'pageId 또는 spaceId 중 하나는 필수' })
|
||||||
@ApiNotFoundResponse({ description: '페이지 또는 스페이스를 찾을 수 없음' })
|
@ApiNotFoundResponse({ description: '페이지 또는 스페이스를 찾을 수 없음' })
|
||||||
|
|||||||
@@ -293,7 +293,7 @@ export class PageService {
|
|||||||
if (!page) {
|
if (!page) {
|
||||||
throw new NotFoundException(`Page with id '${query.pageId}' not found`);
|
throw new NotFoundException(`Page with id '${query.pageId}' not found`);
|
||||||
}
|
}
|
||||||
return page;
|
return [page];
|
||||||
} else if (query.spaceId) {
|
} else if (query.spaceId) {
|
||||||
// 스페이스의 모든 페이지 조회
|
// 스페이스의 모든 페이지 조회
|
||||||
const space = await this.spaceRepository.findById(query.spaceId);
|
const space = await this.spaceRepository.findById(query.spaceId);
|
||||||
|
|||||||
Reference in new issue
Block a user