Skip to content

Commit

Permalink
feat: Update API response type in getFavoriteProducts endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
suk-6 committed Sep 18, 2024
1 parent 8e2207a commit ec403df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/product/product.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export class ProductController {
@UseGuards(AuthGuard('access'))
@ApiBearerAuth()
@ApiOperation({ summary: '좋아요 목록 불러오기' })
@ApiOkResponse({ description: 'Favorite products', type: [GetProductsDTO] })
@ApiOkResponse({ description: 'Favorite products', type: [SearchProductDTO] })
@ApiUnauthorizedResponse({ description: 'Unauthorized' })
async getFavoriteProducts(@CurrentUser() { id }: JwtPayload) {
return this.productService.getFavoriteProducts(id);
Expand Down
1 change: 1 addition & 0 deletions src/modules/product/product.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ export class ProductService {
id: true,
name: true,
image: true,
type: true,
currentAmount: true,
},
where: {
Expand Down

0 comments on commit ec403df

Please sign in to comment.