fixed edit community

This commit is contained in:
hannathkadher
2024-11-21 16:50:25 +04:00
parent 9be03850a5
commit 6c5b01e7c2
7 changed files with 109 additions and 15 deletions

View File

@ -65,11 +65,13 @@ class CommunitySpaceManagementApi {
}
}
Future<bool> updateCommunity(String communityId, CommunityModel community) async {
Future<bool> updateCommunity(String communityId, String name) async {
try {
final response = await HTTPService().put(
path: ApiEndpoints.updateCommunity.replaceAll('{communityId}', communityId),
body: community.toMap(),
body: {
'name': name,
},
expectedResponseModel: (json) {
return json['success'] ?? false;
},