mirror of
https://github.com/we-promise/sure.git
synced 2026-04-20 04:24:06 +00:00
Handle invalid API key (#1515)
* Handle invalid API key * Show error on invalid API key
This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user