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