forked from Yara724/api
YARA-941
This commit is contained in:
@@ -36,7 +36,6 @@ import { BlameDocumentType } from "./entities/schema/blame-document.schema";
|
||||
import {
|
||||
CarBodyFormDto,
|
||||
CarBodySecondForm,
|
||||
CreateRequestDto,
|
||||
DescriptionDto,
|
||||
InitialFormDto,
|
||||
LocationDto,
|
||||
@@ -53,18 +52,18 @@ export class RequestManagementController {
|
||||
private readonly requestManagementService: RequestManagementService,
|
||||
) {}
|
||||
|
||||
@ApiOperation({ deprecated: true })
|
||||
@Post()
|
||||
@UseGuards(GlobalGuard)
|
||||
async createRequest(
|
||||
@CurrentUser() user,
|
||||
@Body() createRequestDto: CreateRequestDto,
|
||||
) {
|
||||
return await this.requestManagementService.createRequest(
|
||||
user,
|
||||
createRequestDto.type,
|
||||
);
|
||||
}
|
||||
// @ApiOperation({ deprecated: true })
|
||||
// @Post()
|
||||
// @UseGuards(GlobalGuard)
|
||||
// async createRequest(
|
||||
// @CurrentUser() user,
|
||||
// @Body() createRequestDto: CreateRequestDto,
|
||||
// ) {
|
||||
// return await this.requestManagementService.createRequest(
|
||||
// user,
|
||||
// createRequestDto.type,
|
||||
// );
|
||||
// }
|
||||
|
||||
@ApiOperation({ deprecated: true })
|
||||
@Post("/initial-form/:requestId")
|
||||
|
||||
Reference in New Issue
Block a user