add user destroyed/disabled/enabled event

This commit is contained in:
xiaomlove
2024-03-16 15:26:12 +08:00
parent 38ff708a26
commit 0c594058e9
9 changed files with 186 additions and 5 deletions

View File

@@ -5,7 +5,10 @@ namespace App\Providers;
use App\Events\SeedBoxRecordUpdated;
use App\Events\TorrentCreated;
use App\Events\TorrentUpdated;
use App\Events\UserDestroyed;
use App\Events\UserDisabled;
use App\Listeners\FetchTorrentImdb;
use App\Listeners\RemoveOauthTokens;
use App\Listeners\RemoveSeedBoxRecordCache;
use App\Listeners\SyncTorrentToEs;
use Illuminate\Auth\Events\Registered;
@@ -33,6 +36,12 @@ class EventServiceProvider extends ServiceProvider
TorrentCreated::class => [
FetchTorrentImdb::class,
],
UserDestroyed::class => [
RemoveOauthTokens::class,
],
UserDisabled::class => [
RemoveOauthTokens::class,
],
];
/**