update getUserID parameters

This commit is contained in:
Ryan Tharp 2020-07-20 02:00:21 +00:00
parent ebf9c7ea2f
commit 1044368b93
1 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ const updateUserAccess = () => {
for(const pubKey in disk_config.globals) {
const access = disk_config.globals[pubKey];
// translate pubKey to id of user
cache.getUserID(pubKey, (user, err) => {
cache.getUserID(pubKey, (err, user) => {
// only if user has registered
if (user) {
user_access[user.id] = access;
@ -91,7 +91,7 @@ const updateUserAccess = () => {
whitelist_access = {};
for(const pubKey in disk_config.whitelist) {
// translate pubKey to id of user
cache.getUserID(pubKey, (user, err) => {
cache.getUserID(pubKey, (err, user) => {
if (user) {
whitelist_access[user.id] = true;
} else {