From f522f5bd8d6edbe54ba625395979488b02231d06 Mon Sep 17 00:00:00 2001 From: haroon amjad Date: Mon, 2 Mar 2026 11:39:57 +0300 Subject: [PATCH] Update to stores VersionID 10.8 --- lib/client/base_app_client.dart | 10 +++++++++- lib/config/config.dart | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/client/base_app_client.dart b/lib/client/base_app_client.dart index 49e693f3..fda8db44 100755 --- a/lib/client/base_app_client.dart +++ b/lib/client/base_app_client.dart @@ -239,7 +239,15 @@ class BaseAppClient { String? token = await sharedPref.getString(TOKEN); Map? profile = await sharedPref.getObj(DOCTOR_PROFILE); - if (body?['MemberID'] == null) body?['MemberID'] = HospitalsService.memberId; + + // if (body?['MemberID'] == null) body?['MemberID'] = HospitalsService.memberId; + + if (profile != null) { + DoctorProfileModel doctorProfile = DoctorProfileModel.fromJson(profile); + if (body?['MemberID'] == null) + body?['MemberID'] = HospitalsService.memberId.isNotEmpty ? HospitalsService.memberId : doctorProfile.doctorID; // changed from null; because create update episode not working + } + if (profile != null) { DoctorProfileModel doctorProfile = DoctorProfileModel.fromJson(profile); if (body!['DoctorID'] == null) { diff --git a/lib/config/config.dart b/lib/config/config.dart index cec77c23..2e278653 100755 --- a/lib/config/config.dart +++ b/lib/config/config.dart @@ -413,7 +413,7 @@ const TRANSACTION_NO = 0; const LANGUAGE_ID = 2; const STAMP = '2020-04-27T12:17:17.721Z'; const IP_ADDRESS = '9.9.9.9'; -const VERSION_ID = 10.6; +const VERSION_ID = 10.8; const CHANNEL = 9; const SESSION_ID = 'BlUSkYymTt'; const IS_LOGIN_FOR_DOCTOR_APP = true;