Skip to content

Commit

Permalink
LOA BE fix- Remove feature flag check at controller level (#1685)
Browse files Browse the repository at this point in the history
  • Loading branch information
krishnan-aot authored Dec 3, 2024
1 parent 23cfca8 commit 745498c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vehicles/src/modules/special-auth/loa.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ import {

@ApiBearerAuth()
@ApiTags('Letter of Authorization (LoA)')
@IsFeatureFlagEnabled('LOA')
@Controller('companies/:companyId/loas')
@ApiMethodNotAllowedResponse({
description: 'The LoA Api Method Not Allowed Response',
Expand Down Expand Up @@ -89,6 +88,7 @@ export class LoaController {
],
})
@Post()
@IsFeatureFlagEnabled('LOA')
@UseInterceptors(FileInterceptor('file'), JsonReqBodyInterceptor)
async create(
@Req() request: Request,
Expand Down Expand Up @@ -164,6 +164,7 @@ export class LoaController {
],
})
@Put('/:loaId')
@IsFeatureFlagEnabled('LOA')
@UseInterceptors(FileInterceptor('file'), JsonReqBodyInterceptor)
async update(
@Req() request: Request,
Expand Down Expand Up @@ -202,6 +203,7 @@ export class LoaController {
],
})
@Delete('/:loaId')
@IsFeatureFlagEnabled('LOA')
async delete(
@Req() request: Request,
@Param() { companyId, loaId }: LoaIdPathParamDto,
Expand Down

0 comments on commit 745498c

Please sign in to comment.