diff --git a/lib/client/base_app_client.dart b/lib/client/base_app_client.dart index 5ccacfc1..94e7ca41 100644 --- a/lib/client/base_app_client.dart +++ b/lib/client/base_app_client.dart @@ -176,6 +176,14 @@ class BaseAppClient { }; String token = await sharedPref.getString(TOKEN); + Map profile = await sharedPref.getObj(DOCTOR_PROFILE); + + if (profile != null) { + DoctorProfileModel doctorProfile = DoctorProfileModel.fromJson(profile); + if (body['DoctorID'] == null) { + body['DoctorID'] = doctorProfile?.doctorID; + } + } var languageID = await sharedPref.getStringWithDefaultValue(APP_Language, 'en'); body['SetupID'] = body.containsKey('SetupID')