added concelation
This commit is contained in:
@@ -1,10 +1,4 @@
|
||||
import {
|
||||
Controller,
|
||||
Get,
|
||||
Post,
|
||||
Body,
|
||||
Param,
|
||||
} from '@nestjs/common';
|
||||
import { Controller, Get, Post, Body, Param, Patch } from '@nestjs/common';
|
||||
import { BitacoraService } from './bitacora.service';
|
||||
import { CreateBitacoraDto } from './dto/create-bitacora.dto';
|
||||
|
||||
@@ -17,11 +11,6 @@ export class BitacoraController {
|
||||
return this.bitacoraService.create(createBitacoraDto);
|
||||
}
|
||||
|
||||
@Get()
|
||||
findAll() {
|
||||
return this.bitacoraService.findAll();
|
||||
}
|
||||
|
||||
@Get('/cuenta/:id')
|
||||
findOneByAcount(@Param('id') id: string) {
|
||||
return this.bitacoraService.findOneByAcount(+id);
|
||||
@@ -31,4 +20,17 @@ export class BitacoraController {
|
||||
findOneByMachine(@Param('id') id: string) {
|
||||
return this.bitacoraService.findOneByMachine(+id);
|
||||
}
|
||||
|
||||
@Patch('cancelar/:id')
|
||||
cancelationByMachine(
|
||||
@Param('id') id: number,
|
||||
@Body('tiempo_asignado') tiempo_asignado: number,
|
||||
) {
|
||||
return this.bitacoraService.cancelation(id, tiempo_asignado);
|
||||
}
|
||||
|
||||
@Get(':id')
|
||||
findAll(@Param('id') id: string) {
|
||||
return this.bitacoraService.findAll();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user