mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-02 20:15:22 +02:00
Synth error handling (#1502)
* Synth error handling
* Revert "Synth error handling"
This reverts commit fd6a0a12b4
.
* Simplify overage messaging
This commit is contained in:
parent
955f211fe0
commit
a9b61a655b
2 changed files with 9 additions and 0 deletions
|
@ -153,6 +153,10 @@ class Family < ApplicationRecord
|
|||
self.class.synth_provider&.usage
|
||||
end
|
||||
|
||||
def synth_overage?
|
||||
self.class.synth_provider && self.class.synth_provider.usage.utilization >= 1
|
||||
end
|
||||
|
||||
def subscribed?
|
||||
stripe_subscription_status == "active"
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue