diff --git a/resolvers/load.py b/resolvers/load.py index b0a2b97..65f3b1d 100644 --- a/resolvers/load.py +++ b/resolvers/load.py @@ -54,7 +54,7 @@ async def get_notifications_grouped(author_id: int, after: int = 0, limit: int = ) if after: query = query.filter(Notification.created_at > after) - query = query.group_by(NotificationSeen.notification) + query = query.group_by(NotificationSeen.notification, Notification.created_at) groups_amount = 0 unread = 0