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
This commit is contained in:
@@ -127,7 +127,22 @@ export const authController = {
|
|||||||
return res.status(401).json({ error: 'Not authenticated' });
|
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 = {};
|
const updates: any = {};
|
||||||
|
|
||||||
for (const field of allowedUpdates) {
|
for (const field of allowedUpdates) {
|
||||||
|
|||||||
Reference in New Issue
Block a user