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