clear user cache when wearing medals

This commit is contained in:
xiaomlove
2022-08-21 20:00:11 +08:00
parent 6a34eef36f
commit e48dc3bba9
2 changed files with 1 additions and 3 deletions
-3
View File
@@ -29,9 +29,6 @@ if ($user["status"] == "pending")
stderr($lang_userdetails['std_sorry'], $lang_userdetails['std_user_not_confirmed']);
$medalType = 'valid_medals';
if ($user['id'] == $CURUSER['id']) {
$medalType = 'valid_medals';
}
$userInfo = \App\Models\User::query()->with($medalType)->findOrFail($user['id']);
$userRep = new \App\Repositories\UserRepository();