Cambio de variables

Cambio al nombre de variables de retorno
This commit is contained in:
Traym17 2022-07-10 21:48:25 -06:00
parent bfea5e7a84
commit 610f1fbfeb
1 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ export class UsersService {
async findHero(email: string, password: string) : Promise<User> {
let repo1=this.userModel;
let p = new Promise<User>((resolve, reject) => {
let userReturn = new Promise<User>((resolve, reject) => {
let repo =repo1;
repo.find({ email : email }).exec((err, res) => {
@ -65,6 +65,6 @@ export class UsersService {
});
});
return p;
return userReturn;
}
}