Architecture Track • Beginner • 3 mins review

Refactor: Reuse the invite controller for team onboarding

Attempts to reduce duplication by letting one controller call another controller directly for shared onboarding logic.

Scenario Goal & Context

Goal: Share the existing account creation path between the two HTTP flows.

Background: Both invite acceptance and team onboarding create user accounts, and the team wanted to avoid duplicating that code.

Changed Files (1)

  • src/controllers/TeamOnboardingController.ts +3 -0

Ready to practice reviewing this PR?

Open this scenario inside the interactive DiffSense simulator to leave inline comments and receive an automated score.

Start Review Session