Skip to content

Commit

Permalink
remove stocks find by id method
Browse files Browse the repository at this point in the history
  • Loading branch information
bahram1249 committed May 15, 2024
1 parent c46cd8f commit 2431aa5
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions apps/e-commerce/src/user/stock/stock.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,16 @@ export class StockController {
return await this.service.price(session, body, user);
}

@UseGuards(OptionalJwtGuard, SessionGuard)
@ApiOperation({ description: 'show stock by given id' })
@Get('/:id')
@HttpCode(HttpStatus.OK)
async findById(
@GetECSession() session: ECUserSession,
@Param('id') entityId: bigint,
) {
return await this.service.findById(session, entityId);
}
// @UseGuards(OptionalJwtGuard, SessionGuard)
// @ApiOperation({ description: 'show stock by given id' })
// @Get('/:id')
// @HttpCode(HttpStatus.OK)
// async findById(
// @GetECSession() session: ECUserSession,
// @Param('id') entityId: bigint,
// ) {
// return await this.service.findById(session, entityId);
// }

@UseGuards(OptionalJwtGuard, SessionGuard)
@ApiOperation({ description: 'set new stock' })
Expand Down

0 comments on commit 2431aa5

Please sign in to comment.