1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-27 17:19:39 +02:00

Get generator working again

This commit is contained in:
Zach Gollwitzer 2025-04-02 11:37:55 -04:00
parent d64e1fc575
commit 016b48a71c

View file

@ -188,11 +188,12 @@ class Demo::Generator
family.rules.create!( family.rules.create!(
effective_date: 1.year.ago.to_date, effective_date: 1.year.ago.to_date,
active: true, active: true,
resource_type: "transaction",
conditions: [ conditions: [
Rule::Condition.new(condition_type: "match_merchant", value: "Whole Foods") Rule::Condition.new(condition_type: "transaction_merchant", operator: "=", value: "Whole Foods")
], ],
actions: [ actions: [
Rule::Action.new(action_type: "set_category", value: "Groceries") Rule::Action.new(action_type: "set_transaction_category", value: "Groceries")
] ]
) )
end end