Selaa lähdekoodia

upd notifications

Alexander Musikhin 1 viikko sitten
vanhempi
sitoutus
942db22ad4

+ 1 - 0
app/Http/Controllers/Admin/AdminNotificationLogController.php

@@ -34,6 +34,7 @@ class AdminNotificationLogController extends Controller
         $this->createDateFilters($model, 'created_at');
 
         $q = NotificationDeliveryLog::query()->with('user');
+        $q->where('channel', '!=', NotificationDeliveryLog::CHANNEL_IN_APP);
         $this->acceptFilters($q, $request);
         $this->acceptSearch($q, $request);
         $this->setSortAndOrderBy($model, $request);

+ 2 - 2
app/Http/Controllers/FilterController.php

@@ -81,9 +81,9 @@ class FilterController extends Controller
         ],
         'notification_logs' => [
             'channel' => [
-                'in_app'  => 'В приложении',
+                'in_app'  => 'Браузер',
                 'browser' => 'Браузер',
-                'push'    => 'Push',
+                'push'    => 'Android/iOS',
                 'email'   => 'Email',
             ],
             'status' => [

+ 2 - 2
app/Models/NotificationDeliveryLog.php

@@ -22,9 +22,9 @@ class NotificationDeliveryLog extends Model
     public const STATUS_DEAD_LETTER = 'dead_letter';
 
     public const CHANNEL_LABELS = [
-        self::CHANNEL_IN_APP  => 'В приложении',
+        self::CHANNEL_IN_APP  => 'Браузер',
         self::CHANNEL_BROWSER => 'Браузер',
-        self::CHANNEL_PUSH    => 'Push',
+        self::CHANNEL_PUSH    => 'Android/iOS',
         self::CHANNEL_EMAIL   => 'Email',
     ];