Skip to content

Commit

Permalink
fix seeds (#533)
Browse files Browse the repository at this point in the history
  • Loading branch information
thatguyinabeanie authored Oct 30, 2024
1 parent 5af5cbd commit a4248e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def tournament_name(organization:)

tournament = create_tournament(name: tournament_name(organization:), organization:, format:, game: format.game, start_at:, end_at:).tap do |tour|
# Preload profiles to avoid N1 queries
accounts_with_profiles = accounts.includes(:default_profile)
accounts_with_profiles = Account.includes(:default_profile)

# Validate pokemon_data before proceeding
raise "Invalid pokemon data" unless pokemon_data.all? { |p| p[:species].present? && p[:position].present? }
Expand Down

1 comment on commit a4248e7

@vercel
Copy link

@vercel vercel bot commented on a4248e7 Oct 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.