From db11c729ec5a91eb2b30feee4d4792f2b6c62f7a Mon Sep 17 00:00:00 2001 From: IlhamTahir Date: Wed, 20 Nov 2024 15:38:01 +0800 Subject: [PATCH] fix: type --- src/article/controller/carousal.controller.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/article/controller/carousal.controller.ts b/src/article/controller/carousal.controller.ts index 7474d24..01ad6b3 100644 --- a/src/article/controller/carousal.controller.ts +++ b/src/article/controller/carousal.controller.ts @@ -64,7 +64,10 @@ export class CarousalController { @Get('active-list') @ApiBearerAuth() @ApiOkResponse({ - type: Array, + schema: { + type: 'array', + items: { $ref: getSchemaPath(CarousalVo) }, + }, }) async activeList() { return CarousalMapper.toVos(await this.carousalService.activeList());