mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 08:35:00 +00:00
Refactor findNull to find
This commit is contained in:
@@ -161,7 +161,7 @@ class EventServiceProvider extends ServiceProvider
|
||||
static function (Client $oauthClient) {
|
||||
/** @var UserRepositoryInterface $repository */
|
||||
$repository = app(UserRepositoryInterface::class);
|
||||
$user = $repository->findNull((int)$oauthClient->user_id);
|
||||
$user = $repository->find((int)$oauthClient->user_id);
|
||||
if (null === $user) {
|
||||
Log::info('OAuth client generated but no user associated.');
|
||||
|
||||
|
Reference in New Issue
Block a user