1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-02 20:15:22 +02:00

Isolate infinite loop bug, add timeout to actions (#583)

* Isolate infinite loop bug, add timeout to actions

* Increase timeout to allow for temporary failure

* Set correct timeout, implement temporary fix

* Trigger syncs at controller layer
This commit is contained in:
Zach Gollwitzer 2024-03-29 12:53:08 -04:00 committed by GitHub
parent 2d406274ac
commit b1bfdef8ff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 36 additions and 20 deletions

View file

@ -6,8 +6,6 @@ class Transaction < ApplicationRecord
validates :name, :date, :amount, :account, presence: true
after_commit :sync_account
monetize :amount
scope :inflows, -> { where("amount > 0") }
@ -42,10 +40,4 @@ class Transaction < ApplicationRecord
filters
end
private
def sync_account
self.account.sync_later
end
end