Cosmetics

This commit is contained in:
Nabeel Shahzad
2018-08-20 09:48:39 -05:00
parent 89baf34824
commit 66a9b361cb
3 changed files with 8 additions and 7 deletions

View File

@@ -199,9 +199,9 @@ class UserService extends Service
foreach ($ranks as $rank) {
if ($rank->hours > $pilot_hours->hours) {
break;
} else {
$user->rank_id = $rank->id;
}
$user->rank_id = $rank->id;
}
// Only trigger the event/update if there's been a change