Skip to content

fix: resolve circular dependency in NameCheckService#3279

Merged
TaprootFreak merged 2 commits intodevelopfrom
fix/name-check-circular-dependency
Feb 26, 2026
Merged

fix: resolve circular dependency in NameCheckService#3279
TaprootFreak merged 2 commits intodevelopfrom
fix/name-check-circular-dependency

Conversation

@TaprootFreak
Copy link
Collaborator

Summary

  • Add forwardRef() for UserDataService injection in NameCheckService to break the indirect circular dependency chain introduced by feat: add sanctions guard for KYC Level 30 and 50 #3275
  • Chain: KycServiceNameCheckServiceUserDataServiceKycService — without forwardRef, NestJS cannot resolve this on server startup, causing the DEV API to crash

Test plan

  • Verify DEV API starts successfully after merge
  • yarn lint && yarn build && yarn test all green

Add forwardRef() for UserDataService injection in NameCheckService
to break the circular dependency chain introduced by #3275:
KycService → NameCheckService → UserDataService → KycService

Without forwardRef, NestJS cannot resolve this indirect circular
dependency on server startup, causing the DEV API to crash.
@TaprootFreak TaprootFreak marked this pull request as ready for review February 26, 2026 17:08
@TaprootFreak TaprootFreak merged commit e196941 into develop Feb 26, 2026
8 checks passed
@TaprootFreak TaprootFreak deleted the fix/name-check-circular-dependency branch February 26, 2026 17:08
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.

1 participant