Add photo upload as a real onboarding step
Photos are now step 2 of onboarding (right after basic info) instead of only being manageable from the profile page later. Uploading still goes through the existing /profile/photos endpoint; the new POST /onboarding/photos just confirms at least one photo exists and advances the step counter. Renumbered the OnboardingStep enum accordingly (9 steps total now). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -60,7 +60,7 @@ func main() {
|
||||
userRepo, otpSender, jwtManager,
|
||||
cfg.OTPExpirySeconds, cfg.OTPLength, cfg.OTPHashSecret,
|
||||
)
|
||||
onboardingService := service.NewOnboardingService(userRepo, optionRepo, questionRepo)
|
||||
onboardingService := service.NewOnboardingService(userRepo, optionRepo, questionRepo, photoRepo)
|
||||
adminService := service.NewAdminService(optionRepo, questionRepo, userRepo)
|
||||
profileService := service.NewProfileService(photoRepo, userRepo, photoStorage)
|
||||
discoveryService := service.NewDiscoveryService(userRepo, photoRepo, swipeRepo, matchRepo, optionRepo, questionRepo)
|
||||
|
||||
Reference in New Issue
Block a user