mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 02:01:33 +00:00
Use find command for userId check in Mail
This commit is contained in:
@@ -20,10 +20,11 @@ class SendInvite extends Mailable
|
||||
* Create a new message instance.
|
||||
*
|
||||
* @param $userId
|
||||
* @param $invite
|
||||
*/
|
||||
public function __construct($userId, $invite)
|
||||
{
|
||||
$this->user = User::query()->where('id', $userId)->first();
|
||||
$this->user = User::find($userId);
|
||||
$this->invite = $invite;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user