We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4073c1e commit 24629dbCopy full SHA for 24629db
notifications/classes/plugins/NotifyPlugin.php
@@ -99,8 +99,7 @@ public static function userPromoted($event)
99
{
100
$params = $event->params;
101
$pilot = (new User)->getUser($params['pilot']);
102
- $rank = Rank::find($params['rank']);
103
- $msg = "**{$pilot->name} has been promoted to {$rank->name}!**";
+ $msg = "**{$pilot->name} has been promoted to {$params['rank']->name}!**";
104
self::postMsg($msg);
105
}
106
0 commit comments