diff --git a/dbTools/profile.js b/dbTools/profile.js index aede2e9..8fb86cd 100644 --- a/dbTools/profile.js +++ b/dbTools/profile.js @@ -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;