fix post crud
This commit is contained in:
@ -34,9 +34,9 @@ class UserService
|
||||
return false;
|
||||
}
|
||||
|
||||
public function check(string $username): bool
|
||||
public function check(int $user_id): bool
|
||||
{
|
||||
if (User::where(['username' => $username])->first())
|
||||
if (User::where(['id' => $user_id])->first())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user