diff --git a/src/Core/Notifications/NotificationRepository.php b/src/Core/Notifications/NotificationRepository.php index d0beaf007..8977bea65 100644 --- a/src/Core/Notifications/NotificationRepository.php +++ b/src/Core/Notifications/NotificationRepository.php @@ -22,7 +22,7 @@ class NotificationRepository ->whereIn('type', $user->getAlertableNotificationTypes()) ->where('is_deleted', false) ->groupBy('type', 'subject_id') - ->latest('time') + ->orderByRaw('MAX(time) DESC') ->skip($offset) ->take($limit);