fix: service deletion job

This commit is contained in:
Andras Bacsai
2023-12-08 18:32:08 +01:00
parent 6a6275d4fa
commit 4e680deb93
6 changed files with 83 additions and 37 deletions

View File

@@ -1,5 +1,6 @@
<?php
use App\Events\TestEvent;
use App\Http\Controllers\ApplicationController;
use App\Http\Controllers\Controller;
use App\Http\Controllers\DatabaseController;
@@ -48,7 +49,7 @@ Route::get('/api/v1/test/realtime', function () {
if (auth()->user()?->currentTeam()->id !== 0) {
return redirect('/');
}
event(new \App\Events\TestEvent('asd'));
TestEvent::dispatch('asd');
return 'Look at your other tab.';
})->middleware('auth');