new ep api to assign and cancel table
This commit is contained in:
@@ -20,7 +20,7 @@ export class MesaService {
|
||||
}
|
||||
|
||||
async updateActivo(id: number, updateMesaDto: UpdateMesaDto) {
|
||||
const mesa = await this.mesaRepository.findOne({ where: { idMesa: id } });
|
||||
const mesa = await this.mesaRepository.findOne({ where: { id_mesa: id } });
|
||||
if (!mesa) {
|
||||
throw new NotFoundException(`La mesa no fue encontrada`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user