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