1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2025-07-15 01:24:25 +02:00

type fixing

This commit is contained in:
Braun Patrik
2016-05-04 19:05:19 +02:00
parent 9f793851ce
commit a19aca34ad
6 changed files with 9 additions and 9 deletions

View File

@ -9,13 +9,13 @@ export class MongoUserManager implements IUserManager {
}
public findOne(filter, cb:(error:any, result:User) => void) {
return UserModel.findOne(filter, function (err, result) {
return UserModel.findOne(filter, function (err, result:any) {
return cb(err, result);
});
}
public find(filter, cb:(error:any, result:Array<User>) => void) {
UserModel.find(filter, function (err, result) {
UserModel.find(filter, function (err, result:Array<any>) {
return cb(err, result);
});
}