endpointmesas

This commit is contained in:
2026-02-05 16:16:13 -06:00
4 changed files with 35 additions and 57 deletions
@@ -19,6 +19,7 @@ export class BitacoraMesa {
@Column({ name: 'tiempo_entrada', type: 'datetime' })
tiempo_entrada: Date;
@ManyToOne(() => Mesa)
@JoinColumn({ name: 'id_mesa' })
mesa: Mesa;
+1
View File
@@ -15,6 +15,7 @@ export class MesaController {
async findAllActivo() {
return this.mesaService.findAllActivo();
}
@Patch(':id')
async updateActivo(
+1
View File
@@ -28,4 +28,5 @@ export class MesaService {
mesa.activo = updateMesaDto.activo;
return this.mesaRepository.save(mesa);
}
}