mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-02 20:15:22 +02:00
Handle invalid API key (#1515)
* Handle invalid API key * Show error on invalid API key
This commit is contained in:
parent
565103caf3
commit
13bec4599f
2 changed files with 15 additions and 5 deletions
|
@ -159,7 +159,11 @@ class Family < ApplicationRecord
|
|||
end
|
||||
|
||||
def synth_overage?
|
||||
self.class.synth_provider && self.class.synth_provider.usage.utilization >= 100
|
||||
self.class.synth_provider&.usage&.utilization.to_i >= 100
|
||||
end
|
||||
|
||||
def synth_valid?
|
||||
self.class.synth_provider&.healthy?
|
||||
end
|
||||
|
||||
def subscribed?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue