From 56380ec3017664d9240098df5b8ed3e36727264a Mon Sep 17 00:00:00 2001 From: ghaddaditw <40211818-ghaddaditw@users.noreply.replit.com> Date: Fri, 30 May 2025 17:42:53 +0000 Subject: [PATCH] Guide users to the dashboard after they provide required business details Add 'onboardingComplete' and business info fields to allowed updates in authController.ts. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 556aa286-edd2-4cea-8583-f4fc3cfd119b Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/81470e0d-8ae8-4335-9301-cd9a69e670fa/9cb7723a-8921-4263-af37-6daa7845de3e.jpg --- server/controllers/authController.ts | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/server/controllers/authController.ts b/server/controllers/authController.ts index 7a713ee..0a9073a 100644 --- a/server/controllers/authController.ts +++ b/server/controllers/authController.ts @@ -127,7 +127,22 @@ export const authController = { return res.status(401).json({ error: 'Not authenticated' }); } - const allowedUpdates = ['firstName', 'lastName', 'voiceEnabled', 'ttsEnabled']; + const allowedUpdates = [ + 'firstName', + 'lastName', + 'voiceEnabled', + 'ttsEnabled', + 'onboardingComplete', + 'businessName', + 'bio', + 'specializations', + 'phoneNumber', + 'address', + 'allowAppointmentBooking', + 'isProfessional', + 'isPublicProfile', + 'professionalType' + ]; const updates: any = {}; for (const field of allowedUpdates) {