fix post crud

This commit is contained in:
2024-07-26 11:57:05 +03:00
parent 25e585655c
commit f5f546ba95
10 changed files with 42 additions and 38 deletions

View File

@ -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;
}