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