0
0
Fork 0

Add most_recent_notification_id to NotificationGroup (#30707)

This commit is contained in:
Claire 2024-06-14 12:33:06 +02:00 committed by GitHub
parent b5d1d48266
commit 8eb27c60e1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 4 deletions

View file

@ -1,7 +1,7 @@
# frozen_string_literal: true
class REST::NotificationGroupSerializer < ActiveModel::Serializer
attributes :group_key, :notifications_count, :type
attributes :group_key, :notifications_count, :type, :most_recent_notification_id
attribute :page_min_id, if: :paginated?
attribute :page_max_id, if: :paginated?