From d4f65f451d2cf74e5a271536d4b99830eb06486d Mon Sep 17 00:00:00 2001 From: dogukanoksuz Date: Mon, 10 Jul 2023 10:23:22 +0300 Subject: [PATCH] fix: High availability sync module updated notification overflow --- routes/console.php | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/routes/console.php b/routes/console.php index 39956bfe..1018a372 100644 --- a/routes/console.php +++ b/routes/console.php @@ -75,26 +75,11 @@ $flag = Module::where(['name' => $module_name])->exists(); if (! $flag) { - $module = Module::create(['name' => $module_name, 'enabled' => true]); - - $notification = new AdminNotification([ - 'title' => 'Yeni Modül Eklendi', - 'type' => 'new_module', - 'message' => "$module_name isminde bir modül sisteme eklendi.", - 'level' => 3, - ]); + Module::create(['name' => $module_name, 'enabled' => true]); } else { Module::where(['name' => $module_name])->first()->touch(); - - $notification = new AdminNotification([ - 'title' => $module_name.' modülü güncellendi.', - 'type' => 'new_module', - 'message' => "$module_name isminde bir modül güncellendi.", - 'level' => 3, - ]); } - $notification->save(); $this->info('Modül başarıyla yüklendi.'); })->describe('New module add');