Merge pull request 'family file switch back issue fixed' (#203) from dev_aamir into master

Reviewed-on: https://34.17.182.140/Haroon6138/HMG_Patient_App_New/pulls/203
ambulance_selection_change
Haroon6138 4 months ago
commit c324007e61

@ -200,8 +200,6 @@ class AuthenticationRepoImp implements AuthenticationRepo {
}
}
@override
Future<Either<Failure, GenericApiModel<dynamic>>> checkActivationCodeRepo(
{required dynamic newRequest, // could be CheckActivationCodeReq or CheckActivationCodeRegisterReq
@ -280,7 +278,6 @@ class AuthenticationRepoImp implements AuthenticationRepo {
newRequest.logInTokenID = null;
newRequest.deviceToken = null;
}
}
Map<String, dynamic> familyRequest = {};
@ -315,13 +312,9 @@ class AuthenticationRepoImp implements AuthenticationRepo {
}
if (appState.getSuperUserID == responseID) {
// switchRequest['LoginType'] = 0;
switchRequest['LoginType'] = loginType;
switchRequest['PatientIdentificationID'] = "";
// switchRequest["PatientID"] = responseID;
// switchRequest["SuperUser"] = responseID;
// switchRequest["PatientID"] = appState.getAuthenticatedUser()?.patientId ?? 0;
// switchRequest["PatientMobileNumber"] = newRequest.patientMobileNumber?.toString().startsWith('0') == true ? newRequest.patientMobileNumber.toString() : '0${newRequest.patientMobileNumber}';
switchRequest['DeviceToken'] = newRequest.deviceToken;
switchRequest.removeWhere((key, value) => ['NationalID', 'isDentalAllowedBackend', 'ProjectOutSA', 'ForRegisteration'].contains(key));
}
}

@ -560,8 +560,8 @@ class AuthenticationViewModel extends ChangeNotifier {
responseID: responseID,
isSwitchUser: isSwitchUser,
patientID: patientID,
loginType: _appState.getSuperUserID != null ? 0 : 2,
);
// loginType: _appState.getSuperUserID != null ? 0 : 2,
loginType: loginTypeEnum.toInt);
resultEither.fold(
(failure) async => await _errorHandlerService.handleError(

Loading…
Cancel
Save