@@ -70,7 +70,7 @@ |
||
70 | 70 | */ |
71 | 71 | public function actionUnreadNotifications() |
72 | 72 | { |
73 | - $total = Notification::getDb()->cache(function ($db) { |
|
73 | + $total = Notification::getDb()->cache(function($db) { |
|
74 | 74 | return Notification::find()->where(['user_id' => Yii::$app->user->id])->pending()->count(); |
75 | 75 | }, 60); |
76 | 76 | return ['total' => $total]; |