change nome error

This commit is contained in:
2025-09-18 15:51:30 -06:00
parent d322340e86
commit d3fe3eb4ea
+1 -2
View File
@@ -1,6 +1,5 @@
import { Injectable, NotFoundException } from '@nestjs/common'; import { Injectable, NotFoundException } from '@nestjs/common';
import { CreateStudentDto } from './dto/create-student.dto'; import { CreateStudentDto } from './dto/create-student.dto';
import { UpdateStudentDto } from './dto/update-student.dto';
import { Student } from './entities/student.entity'; import { Student } from './entities/student.entity';
import { EntityManager, Repository } from 'typeorm'; import { EntityManager, Repository } from 'typeorm';
import { InjectRepository } from '@nestjs/typeorm'; import { InjectRepository } from '@nestjs/typeorm';
@@ -26,7 +25,7 @@ export class StudentService {
where: { id_cuenta }, where: { id_cuenta },
}); });
if (!student) { if (!student) {
throw new NotFoundException(`Student with ID ${id_cuenta} not found`); throw new NotFoundException(`Student not found`);
} }
return student; return student;
} }