mirror of https://github.com/ENSL/ensl_gathers.git
Fixed Authentication taking forever
* Call to fetch hive stats removed as it is not available anymore so the requests would take forever (till timeout)
This commit is contained in:
parent
12c2e8fe69
commit
bbd6db8372
|
@ -113,14 +113,6 @@ User.find = function (id, callback) {
|
||||||
user.profile = profile.toJson();
|
user.profile = profile.toJson();
|
||||||
return callback(null, profile);
|
return callback(null, profile);
|
||||||
});
|
});
|
||||||
},
|
|
||||||
// Retrive Hive Stats
|
|
||||||
callback => {
|
|
||||||
hiveClient.getUserStatsV2(user, (error, response, userStats) => {
|
|
||||||
if (error || response.statusCode !== 200 || userStats.id === null) return callback();
|
|
||||||
_.assign(user.hive, userStats);
|
|
||||||
return callback(null, userStats);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
], function (error, result) {
|
], function (error, result) {
|
||||||
if (error) return callback(error);
|
if (error) return callback(error);
|
||||||
|
|
Loading…
Reference in New Issue