Fix breaking change in admin account API (#19176)

* Fix breaking change in admin account API

Ensure that `ip` is a String value and not returning a raw database entry

* please rubocop
th-downstream
trwnh 2 years ago committed by GitHub
parent cecc816e93
commit e6d37ae8d3

@ -77,6 +77,6 @@ class REST::Admin::AccountSerializer < ActiveModel::Serializer
end
def ip
ips&.first
ips&.first&.ip
end
end

Loading…
Cancel
Save