Skip to content

Fix duplicate module registrations in app.module.ts #54

Description

@dotunv

Description

The app.module.ts file has three modules registered twice in the imports array:

  • WebhookModule (appears twice)
  • WalletModule (appears twice)
  • SimulatorModule (appears twice)

File: apps/api/src/app.module.ts

Impact

Duplicate module registrations in NestJS can cause:

  • Unexpected behavior with duplicate providers
  • Increased memory usage
  • Potential conflicts with dependency injection

Proposed Fix

Remove the duplicate entries, keeping only one instance of each module. Also clean up the commented-out TransactionModule import.

Acceptance Criteria

  • Each module appears exactly once in the imports array
  • Commented-out TransactionModule import is removed
  • Application starts without errors
  • All existing functionality is preserved

Metadata

Metadata

Assignees

No one assigned

    Labels

    GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26backendBackend / API workbugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions