From 50df7502025c345361eec5e30b781e23214027d2 Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 3 Jul 2024 20:50:23 +0100 Subject: [PATCH] Add merge event Signed-off-by: snipe --- app/Console/Commands/MergeUsersByUsername.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Console/Commands/MergeUsersByUsername.php b/app/Console/Commands/MergeUsersByUsername.php index f6a18aea4a..0c5e966ab9 100644 --- a/app/Console/Commands/MergeUsersByUsername.php +++ b/app/Console/Commands/MergeUsersByUsername.php @@ -2,6 +2,7 @@ namespace App\Console\Commands; +use App\Events\UserMerged; use App\Models\User; use Carbon\Carbon; use Illuminate\Console\Command; @@ -121,6 +122,10 @@ class MergeUsersByUsername extends Command $this->info('Marking the user as deleted'); $bad_user->deleted_at = Carbon::now()->timestamp; $bad_user->save(); + + event(new UserMerged($bad_user, $user, null)); + + } } }