mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2024-11-22 04:31:03 +00:00
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
1 changed files with 0 additions and 8 deletions
|
@ -113,14 +113,6 @@ User.find = function (id, callback) {
|
|||
user.profile = profile.toJson();
|
||||
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) {
|
||||
if (error) return callback(error);
|
||||
|
|
Loading…
Reference in a new issue