fixed little tings
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user