add Ep receipt

This commit is contained in:
2025-09-19 17:15:05 -06:00
parent 2f1b0cc76b
commit 0a27caf7ed
24 changed files with 160 additions and 148 deletions
+15 -2
View File
@@ -41,7 +41,20 @@ export class UserService {
path: '/',
});
return res.json({ message: 'Inicio de sesión exitoso' });
return res.json({
message: 'Inicio de sesión exitoso',
access_token: token,
});
}
async findOne(id_usuario: number): Promise<User> {
const student = await this.userRepository.findOne({
where: { id_usuario },
});
if (!student) {
throw new NotFoundException(`Student not found`);
}
return student;
}
}
//IO
//IO