@@ -2,11 +2,11 @@ import { Body, Controller, Delete, Get, HttpStatus, Param, Patch, Post, Req, Res
22import { StateService } from './state.service'
33import { AbstractController } from '~/_common/abstracts/abstract.controller'
44import { Request , Response } from 'express'
5- import { FilterOptions , SearchFilterOptions , FilterSchema , SearchFilterSchema } from '@streamkits/nestjs_module_scrud'
5+ import { FilterOptions , FilterSchema , SearchFilterOptions , SearchFilterSchema } from '@streamkits/nestjs_module_scrud'
66import { ApiParam } from '@nestjs/swagger'
77import { ObjectIdValidationPipe } from '~/_common/pipes/object-id-validation.pipe'
88import { Types } from 'mongoose'
9- import { SlaCreateDto , SlaUpdateDto } from '~/tickets/sla /_dto/sla .dto'
9+ import { StatesCreateDto , StatesUpdateDto } from '~/tickets/state /_dto/state .dto'
1010
1111@Controller ( 'state' )
1212export class StateController extends AbstractController {
@@ -21,7 +21,7 @@ export class StateController extends AbstractController {
2121 }
2222
2323 @Post ( )
24- public async create ( @Req ( ) req : Request , @Res ( ) res : Response , @Body ( ) body : SlaCreateDto ) {
24+ public async create ( @Req ( ) req : Request , @Res ( ) res : Response , @Body ( ) body : StatesCreateDto ) {
2525 const data = await this . _service . create ( body )
2626 return res . status ( HttpStatus . CREATED ) . json ( {
2727 statusCode : HttpStatus . CREATED ,
@@ -51,7 +51,7 @@ export class StateController extends AbstractController {
5151
5252 @Patch ( ':_id([0-9a-fA-F]{24})' )
5353 @ApiParam ( { name : '_id' , type : String } )
54- public async update ( @Param ( '_id' , ObjectIdValidationPipe ) _id : Types . ObjectId , @Body ( ) body : SlaUpdateDto , @Res ( ) res : Response ) {
54+ public async update ( @Param ( '_id' , ObjectIdValidationPipe ) _id : Types . ObjectId , @Body ( ) body : StatesUpdateDto , @Res ( ) res : Response ) {
5555 const data = await this . _service . update ( _id , body )
5656 return res . status ( HttpStatus . OK ) . json ( {
5757 statusCode : HttpStatus . OK ,
0 commit comments