mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-18 18:44:16 +00:00
Webhook API
This commit is contained in:
@@ -128,11 +128,11 @@ class Webhook extends Model
|
||||
public static function routeBinder(string $value): Webhook
|
||||
{
|
||||
if (auth()->check()) {
|
||||
$budgetId = (int)$value;
|
||||
$webhookId = (int)$value;
|
||||
/** @var User $user */
|
||||
$user = auth()->user();
|
||||
/** @var Webhook $webhook */
|
||||
$webhook = $user->webhooks()->find($budgetId);
|
||||
$webhook = $user->webhooks()->find($webhookId);
|
||||
if (null !== $webhook) {
|
||||
return $webhook;
|
||||
}
|
||||
|
Reference in New Issue
Block a user