mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-19 00:01:00 +08:00
clear user cache when wearing medals
This commit is contained in:
@@ -87,6 +87,7 @@ class MedalRepository extends BaseRepository
|
||||
$userMedal->status = UserMedal::STATUS_NOT_WEARING;
|
||||
}
|
||||
$userMedal->save();
|
||||
clear_user_cache($userId);
|
||||
return $userMedal;
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user