fix : update profile
This commit is contained in:
@@ -414,7 +414,7 @@ class ChickenRemoteDatasourceImp implements ChickenRemoteDatasource {
|
|||||||
@override
|
@override
|
||||||
Future<void> updateUserProfile({required String token, required UserProfile userProfile}) async {
|
Future<void> updateUserProfile({required String token, required UserProfile userProfile}) async {
|
||||||
await _httpClient.put(
|
await _httpClient.put(
|
||||||
'/system_user_profile/?self-profile/0/',
|
'/system_user_profile/0/',
|
||||||
headers: {'Authorization': 'Bearer $token'},
|
headers: {'Authorization': 'Bearer $token'},
|
||||||
data: userProfile.toJson()..removeWhere((key, value) => value == null),
|
data: userProfile.toJson()..removeWhere((key, value) => value == null),
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ class ProfileLogic extends GetxController {
|
|||||||
lastName: lastNameController.text,
|
lastName: lastNameController.text,
|
||||||
nationalCode: nationalCodeController.text,
|
nationalCode: nationalCodeController.text,
|
||||||
nationalId: nationalIdController.text,
|
nationalId: nationalIdController.text,
|
||||||
birthday: birthDate.value?.toGregorian().toString(),
|
birthday: birthDate.value?.toDateTime().formattedDashedGregorian.toString(),
|
||||||
image: _base64Image.value,
|
image: _base64Image.value,
|
||||||
personType: 'self',
|
personType: 'self',
|
||||||
type: 'self_profile',
|
type: 'self_profile',
|
||||||
|
|||||||
Reference in New Issue
Block a user