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:
Absurdon 2023-02-10 20:20:31 +01:00
parent 12c2e8fe69
commit bbd6db8372

View file

@ -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);