1
This commit is contained in:
@@ -20,3 +20,5 @@ export class CreateStudentDto {
|
||||
@IsString()
|
||||
correo: string;
|
||||
}
|
||||
|
||||
//Hubo pedos con la base , revisar
|
||||
|
||||
@@ -13,6 +13,7 @@ export class StudentService {
|
||||
) {}
|
||||
|
||||
async create(createStudentDto: CreateStudentDto): Promise<Student> {
|
||||
//Hubo pedos con la base , revisar
|
||||
const student = this.studentRepository.create(createStudentDto);
|
||||
return await this.studentRepository.save(student);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user