Cambio de variables
Cambio al nombre de variables de retorno
This commit is contained in:
parent
bfea5e7a84
commit
610f1fbfeb
|
@ -46,7 +46,7 @@ export class UsersService {
|
||||||
|
|
||||||
async findHero(email: string, password: string) : Promise<User> {
|
async findHero(email: string, password: string) : Promise<User> {
|
||||||
let repo1=this.userModel;
|
let repo1=this.userModel;
|
||||||
let p = new Promise<User>((resolve, reject) => {
|
let userReturn = new Promise<User>((resolve, reject) => {
|
||||||
let repo =repo1;
|
let repo =repo1;
|
||||||
|
|
||||||
repo.find({ email : email }).exec((err, res) => {
|
repo.find({ email : email }).exec((err, res) => {
|
||||||
|
@ -65,6 +65,6 @@ export class UsersService {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
return p;
|
return userReturn;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue