PRX / cms.prx.org

CMS API for PRX
https://cms.prx.org
GNU Affero General Public License v3.0
4 stars 2 forks source link

Retrieving story from a deleted account throws a 500 error #579

Closed kookster closed 3 years ago

kookster commented 3 years ago

on get /api/v1/stories/10445

throws

NoMethodError: undefined method `id' for nil:NilClass
                             /app/app/models/address.rb:   11:in `account_id'
       /app/app/representers/api/address_representer.rb:   14:in `self_url'

the account related to this story is redacted/deleted.

cavis commented 3 years ago

Fixed in 431412890568364fc35e83bced7bafaf03efd167