Skip to content

fix(app): remove duplicate ProgressModule registration in AppModule - #670

Open
Ummi-001 wants to merge 1 commit into
MindBlockLabs:mainfrom
Ummi-001:fix/658-duplicate-progress-module
Open

fix(app): remove duplicate ProgressModule registration in AppModule#670
Ummi-001 wants to merge 1 commit into
MindBlockLabs:mainfrom
Ummi-001:fix/658-duplicate-progress-module

Conversation

@Ummi-001

Copy link
Copy Markdown
Contributor

Closes #658

Summary

backend/src/app.module.ts listed ProgressModule twice in its imports array — once among the feature modules and again after BlockchainModule. NestJS deduplicates modules internally, so this was not fatal at runtime, but it was misleading for anyone auditing the module wiring (e.g. tracing the progress-to-analytics event flow) and kept getting flagged in review.

Changes

  • Removed the duplicate ProgressModule entry; it now appears exactly once in AppModule.imports
  • Alphabetized the static feature-module imports so future duplicates are immediately obvious
  • The framework configuration blocks (ConfigModule.forRoot, EventEmitterModule.forRoot, ScheduleModule.forRoot, TypeOrmModule.forRootAsync) keep their position first, and the dynamic JwtAuthModule.registerAsync(...) middleware registration stays last — NestJS resolves modules as a dependency graph, so reordering the plain imports has no runtime effect

Verification

  • grep -n ProgressModule backend/src/app.module.ts → one import + one registration
  • npm --workspace backend run build passes locally (tsc, no errors)

ProgressModule was listed twice in AppModule.imports (once among the
feature modules and again after BlockchainModule). NestJS deduplicates
modules internally so this was not fatal, but it misled readers auditing
module wiring and wasted reviewer cycles.

- Keep the single registration next to the other feature modules
- Alphabetize the static imports array so future duplicates stand out;
  forRoot/registerAsync configuration blocks keep their logical order
@vercel

vercel Bot commented Aug 24, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
mind-block-app-frontend Skipped Skipped Aug 24, 2026 12:05pm

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.

fix(app): ProgressModule is registered twice in AppModule imports

1 participant