Guarantee Subscription service first account has proper URL details (#4732)
* Guarantee Subscription service first account has proper URL details Subscription Service potentially could break if the first user suspended themselves, creating a situation where the urls that populate throughout subscription service's PuSH request would cause the remote API to throw 503 errors. Guaranteeing that the first account picked is not suspended prevents this problem. * Fix style issue
This commit is contained in:
parent
3b8a64e94e
commit
2fbae21f05
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ class SubscribeService < BaseService
|
||||||
end
|
end
|
||||||
|
|
||||||
def some_local_account
|
def some_local_account
|
||||||
@some_local_account ||= Account.local.first
|
@some_local_account ||= Account.local.where(suspended: false).first
|
||||||
end
|
end
|
||||||
|
|
||||||
# Any response in the 3xx or 4xx range, except for 429 (rate limit)
|
# Any response in the 3xx or 4xx range, except for 429 (rate limit)
|
||||||
|
|
Loading…
Reference in a new issue