Remove test webhook, no longer necessary.

This commit is contained in:
James Cole
2025-08-22 06:57:25 +02:00
parent 96a66b894a
commit 8a8bbaf827

View File

@@ -125,27 +125,6 @@ class HomeController extends Controller
*/
public function index(AccountRepositoryInterface $repository): mixed
{
$trigger = WebhookTrigger::first();
$delivery = WebhookDelivery::first();
$response = WebhookResponse::first();
$webhook = new Webhook();
$webhook->user_id = auth()->id();
$webhook->user_group_id = auth()->user()->user_group_id;
$webhook->title = 'Test Webhook';
$webhook->url = 'https://example.com/webhook';
$webhook->active = true;
$webhook->secret = 'abc';
$webhook->trigger = 1;
$webhook->response = 1;
$webhook->delivery = 1;
$webhook->save();
$webhook->webhookDeliveries()->saveMany(new Collection()->push($delivery));
$webhook->webhookResponses()->saveMany(new Collection()->push($response));
$webhook->webhookTriggers()->saveMany(new Collection()->push($trigger));
$types = config('firefly.accountTypesByIdentifier.asset');
$count = $repository->count($types);
Log::channel('audit')->info('User visits homepage.');