added bitacora and renamed things

This commit is contained in:
2026-01-27 12:26:22 -06:00
parent 3b947fe95a
commit 5c08fc1c25
12 changed files with 219 additions and 3 deletions
+3 -3
View File
@@ -26,7 +26,7 @@ export class BitacoraMesaService {
}
async findByCuenta(id_cuenta: number) {
const alumno = await this.bitacoraMesaRepository
const student = await this.bitacoraMesaRepository
.createQueryBuilder('bitacora')
.leftJoinAndSelect('bitacora.alumno_inscrito', 'alumnoInscrito')
.leftJoinAndSelect('alumnoInscrito.alumno', 'alumno')
@@ -36,10 +36,10 @@ export class BitacoraMesaService {
.orderBy('bitacora.tiempo_entrada', 'DESC')
.getOne();
if (!alumno) {
if (!student) {
throw new NotFoundException('alumno sin mesa');
}
return alumno;
return student;
}
}