mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2025-04-25 00:41:07 +00:00
Merge pull request #3 from ENSL/fix/slow-login
Fix for slow authentication
This commit is contained in:
commit
5fdbc3d0a0
2 changed files with 2 additions and 9 deletions
|
@ -28,7 +28,7 @@ services:
|
|||
- "./public:/app/public"
|
||||
init: true
|
||||
mongodb:
|
||||
image: "bitnami/mongodb:latest"
|
||||
image: "bitnami/mongodb:4.4"
|
||||
container_name: ensl_gather_mongodb
|
||||
volumes:
|
||||
- "./db/data:/bitnami/mongodb"
|
||||
|
@ -36,3 +36,4 @@ services:
|
|||
- MONGODB_USERNAME
|
||||
- MONGODB_PASSWORD
|
||||
- MONGODB_DATABASE
|
||||
- MONGODB_ROOT_PASSWORD=$MONGODB_PASSWORD
|
||||
|
|
|
@ -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