Replace external_account_id with slug

The account ID isn't useful on its own since it has to be formatted to be used as part of a URL. Therfore let's return the slug instead.
This commit is contained in:
Stanko K.R.
2025-12-09 12:18:51 +01:00
parent ba30a301dc
commit eb787fb590
+1 -1
View File
@@ -1,4 +1,4 @@
json.cache! account do
json.(account, :id, :name, :external_account_id)
json.(account, :id, :name, :slug)
json.created_at account.created_at.utc
end