manage cache on token

This commit is contained in:
aeroreyna
2022-03-24 23:09:27 -07:00
parent 62c68005fc
commit f7f4592b36

View File

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