manage cache on token
This commit is contained in:
@@ -222,6 +222,7 @@ userDB = (DB) => {
|
|||||||
token
|
token
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (userProfileCache[profileid]) delete userProfileCache[profileid];
|
||||||
return DB.profileCols.updateOne({_id}, update).catch((err)=>{
|
return DB.profileCols.updateOne({_id}, update).catch((err)=>{
|
||||||
console.log(err);
|
console.log(err);
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user