Skip to content

Commit 24629db

Browse files
committed
Update NotifyPlugin.php
1 parent 4073c1e commit 24629db

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

notifications/classes/plugins/NotifyPlugin.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,7 @@ public static function userPromoted($event)
9999
{
100100
$params = $event->params;
101101
$pilot = (new User)->getUser($params['pilot']);
102-
$rank = Rank::find($params['rank']);
103-
$msg = "**{$pilot->name} has been promoted to {$rank->name}!**";
102+
$msg = "**{$pilot->name} has been promoted to {$params['rank']->name}!**";
104103
self::postMsg($msg);
105104
}
106105

0 commit comments

Comments
 (0)