Use integers and not numbers in notification policy API counters (#29810)
This commit is contained in:
parent
d05f62391d
commit
b4d991adaa
4 changed files with 11 additions and 11 deletions
|
@ -9,8 +9,8 @@ class REST::NotificationPolicySerializer < ActiveModel::Serializer
|
|||
|
||||
def summary
|
||||
{
|
||||
pending_requests_count: object.pending_requests_count.to_s,
|
||||
pending_notifications_count: object.pending_notifications_count.to_s,
|
||||
pending_requests_count: object.pending_requests_count.to_i,
|
||||
pending_notifications_count: object.pending_notifications_count.to_i,
|
||||
}
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue