fixed little tings

This commit is contained in:
2026-01-13 19:12:45 -06:00
parent 20f6e89e82
commit 3b25606056
9 changed files with 38 additions and 17 deletions
+4
View File
@@ -15,6 +15,10 @@ export class MesaService {
return await this.mesaRepository.find();
}
async findAllActivo(): Promise<Mesa[]> {
return await this.mesaRepository.find({where:{activo:true}});
}
async updateActivo(id: number, updateMesaDto: UpdateMesaDto) {
const mesa = await this.mesaRepository.findOne({ where: { idMesa: id } });
if (!mesa) {