1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-24 15:49:39 +02:00

Add account data enrichment (#1532)
Some checks failed
Publish Docker image / ci (push) Has been cancelled
Publish Docker image / Build docker image (push) Has been cancelled

* Add data enrichment

* Make data enrichment optional for self-hosters

* Add categories to data enrichment

* Only update category and merchant if nil

* Fix name overrides

* Lint fixes
This commit is contained in:
Zach Gollwitzer 2024-12-13 17:22:27 -05:00 committed by GitHub
parent bac2e64c19
commit fe199f2357
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 182 additions and 10 deletions

View file

@ -126,6 +126,14 @@ class Account < ApplicationRecord
classification == "asset" ? "up" : "down"
end
def enrich_data
DataEnricher.new(self).run
end
def enrich_data_later
EnrichDataJob.perform_later(self)
end
def update_with_sync!(attributes)
transaction do
update!(attributes)