endpointmesas
This commit is contained in:
@@ -19,6 +19,7 @@ export class BitacoraMesa {
|
||||
@Column({ name: 'tiempo_entrada', type: 'datetime' })
|
||||
tiempo_entrada: Date;
|
||||
|
||||
|
||||
@ManyToOne(() => Mesa)
|
||||
@JoinColumn({ name: 'id_mesa' })
|
||||
mesa: Mesa;
|
||||
|
||||
@@ -15,6 +15,7 @@ export class MesaController {
|
||||
async findAllActivo() {
|
||||
return this.mesaService.findAllActivo();
|
||||
}
|
||||
|
||||
|
||||
@Patch(':id')
|
||||
async updateActivo(
|
||||
|
||||
@@ -28,4 +28,5 @@ export class MesaService {
|
||||
mesa.activo = updateMesaDto.activo;
|
||||
return this.mesaRepository.save(mesa);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user