Skip to content

Remove duplicate FastPass seeding in main seeder pipeline#15

Draft
lucas-luchack with Copilot wants to merge 2 commits into
mainfrom
copilot/remove-duplicate-fastpassseeder-call
Draft

Remove duplicate FastPass seeding in main seeder pipeline#15
lucas-luchack with Copilot wants to merge 2 commits into
mainfrom
copilot/remove-duplicate-fastpassseeder-call

Conversation

Copilot AI commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

FastPassSeeder was executed twice in main_seeder.ts, causing duplicate FastPass records during database seeding. This PR removes the redundant invocation so the seeding order remains intact while ensuring FastPass data is inserted once.

  • What changed

    • Removed the second FastPassSeeder call from the step-3 seeder block in database/seeders/main_seeder.ts.
    • Kept the existing step-2 FastPassSeeder execution unchanged.
  • Why this matters

    • Prevents duplicate inserts for FastPass seed data.
    • Preserves current seeder dependency flow and execution sequence for all other seeders.
// before
await this.runSeeder(FastPassSeeder) // step 2
...
await this.runSeeder(FastPassSeeder) // step 3 (duplicate)

// after
await this.runSeeder(FastPassSeeder) // step 2 only
Original prompt
Please apply the following diffs and create a pull request.
Once the PR is ready, give it a title based on the messages of the fixes being applied.

[{"message":"FastPassSeeder is run twice - once on line 42 and again on line 48. This will cause duplicate data insertion. Remove one of the duplicate calls.","fixFiles":[{"filePath":"database/seeders/main_seeder.ts","diff":"diff --git a/database/seeders/main_seeder.ts b/database/seeders/main_seeder.ts\n--- a/database/seeders/main_seeder.ts\n+++ b/database/seeders/main_seeder.ts\n@@ -45,7 +45,6 @@\n     await this.runSeeder(ProductSeeder)\n     await this.runSeeder(RestockSeeder)\n     await this.runSeeder(LogSeeder)\n-    await this.runSeeder(FastPassSeeder)\n \n     // 4. Seeders dépendants des seeders précédents\n     await this.runSeeder(SubscriptionSeeder)\n"}]}]

Copilot AI changed the title [WIP] Fix duplicate FastPassSeeder call in main seeder Remove duplicate FastPass seeding in main seeder pipeline Jul 9, 2026
Copilot AI requested a review from lucas-luchack July 9, 2026 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants