added bitacora and renamed things
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user