Fix and undo some enums

This commit is contained in:
James Cole
2024-11-06 19:32:32 +01:00
parent 8c5f114339
commit ed842c2b42
9 changed files with 64 additions and 48 deletions

View File

@@ -142,10 +142,10 @@ class Webhook extends Model
$webhookId = (int) $value;
/** @var User $user */
$user = auth()->user();
$user = auth()->user();
/** @var null|Webhook $webhook */
$webhook = $user->webhooks()->find($webhookId);
$webhook = $user->webhooks()->find($webhookId);
if (null !== $webhook) {
return $webhook;
}