Skip to content

Commit 745498c

Browse files
authored
LOA BE fix- Remove feature flag check at controller level (#1685)
1 parent 23cfca8 commit 745498c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

vehicles/src/modules/special-auth/loa.controller.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ import {
5151

5252
@ApiBearerAuth()
5353
@ApiTags('Letter of Authorization (LoA)')
54-
@IsFeatureFlagEnabled('LOA')
5554
@Controller('companies/:companyId/loas')
5655
@ApiMethodNotAllowedResponse({
5756
description: 'The LoA Api Method Not Allowed Response',
@@ -89,6 +88,7 @@ export class LoaController {
8988
],
9089
})
9190
@Post()
91+
@IsFeatureFlagEnabled('LOA')
9292
@UseInterceptors(FileInterceptor('file'), JsonReqBodyInterceptor)
9393
async create(
9494
@Req() request: Request,
@@ -164,6 +164,7 @@ export class LoaController {
164164
],
165165
})
166166
@Put('/:loaId')
167+
@IsFeatureFlagEnabled('LOA')
167168
@UseInterceptors(FileInterceptor('file'), JsonReqBodyInterceptor)
168169
async update(
169170
@Req() request: Request,
@@ -202,6 +203,7 @@ export class LoaController {
202203
],
203204
})
204205
@Delete('/:loaId')
206+
@IsFeatureFlagEnabled('LOA')
205207
async delete(
206208
@Req() request: Request,
207209
@Param() { companyId, loaId }: LoaIdPathParamDto,

0 commit comments

Comments
 (0)