diff options
author | trwnh <a@trwnh.com> | 2022-09-15 08:35:06 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-15 15:35:06 +0200 |
commit | 526b4b3677dfc5139289b405185024c85bba14dc (patch) | |
tree | 2b2d79f52bcaca49b037f484ffb70122c6494003 /app/serializers | |
parent | 0aacf00f5b77264537aa87fb8f78d7346feb1ec4 (diff) |
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
Diffstat (limited to 'app/serializers')
-rw-r--r-- | app/serializers/rest/admin/account_serializer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/serializers/rest/admin/account_serializer.rb b/app/serializers/rest/admin/account_serializer.rb index 3480e8c5a..2fbc7b1cb 100644 --- a/app/serializers/rest/admin/account_serializer.rb +++ b/app/serializers/rest/admin/account_serializer.rb @@ -77,6 +77,6 @@ class REST::Admin::AccountSerializer < ActiveModel::Serializer end def ip - ips&.first + ips&.first&.ip end end |