fix : update profile

This commit is contained in:
2025-07-22 09:33:45 +03:30
parent a0c1d452c6
commit af0c8be5be
2 changed files with 2 additions and 2 deletions

View File

@@ -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),
); );

View File

@@ -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',