mirror of
https://github.com/we-promise/sure.git
synced 2026-05-29 23:39:03 +00:00
fix(goals/demo): seed goals in generate_new_user_data_for!
Cloudflare preview entrypoint, FamilyResetJob, and the Settings "Reset + load sample data" flow all go through generate_new_user_data_for!, which seeded categories/accounts/transactions/budget but not goals. Move generate_goals! inside this method (alongside the same call already in generate_default_data!) so every sample-data surface gets the full state-coverage matrix.
This commit is contained in:
@@ -72,6 +72,9 @@ class Demo::Generator
|
||||
create_realistic_accounts!(family)
|
||||
create_realistic_transactions!(family)
|
||||
generate_budget_auto_fill!(family)
|
||||
|
||||
puts "🎯 Seeding goals..."
|
||||
generate_goals!(family)
|
||||
end
|
||||
|
||||
family.sync_later
|
||||
|
||||
Reference in New Issue
Block a user