F2.3: estabilizar declaraciones públicas del controller
This commit is contained in:
@@ -23,7 +23,7 @@ export class FieldFindingsController {
|
||||
@Param('visitId', new ParseUUIDPipe({ version: '4' })) visitId: string,
|
||||
@Param('assetId', new ParseUUIDPipe({ version: '4' })) assetId: string,
|
||||
@CurrentAuth() principal: AuthPrincipal,
|
||||
) {
|
||||
): Promise<unknown> {
|
||||
return this.fieldFindings.options(visitId, assetId, principal);
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ export class FieldFindingsController {
|
||||
@Param('visitId', new ParseUUIDPipe({ version: '4' })) visitId: string,
|
||||
@Param('assetId', new ParseUUIDPipe({ version: '4' })) assetId: string,
|
||||
@CurrentAuth() principal: AuthPrincipal,
|
||||
) {
|
||||
): Promise<unknown> {
|
||||
return this.fieldFindings.list(visitId, assetId, principal);
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ export class FieldFindingsController {
|
||||
@Body() dto: CreateFieldFindingDto,
|
||||
@CurrentAuth() principal: AuthPrincipal,
|
||||
@Req() request: RequestWithContext,
|
||||
) {
|
||||
): Promise<unknown> {
|
||||
return this.fieldFindings.create(visitId, assetId, dto, principal, request);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user