removed region from create

This commit is contained in:
hannathkadher
2024-11-22 00:29:35 +04:00
parent 82343e0634
commit 1a967e2ba0
5 changed files with 5 additions and 11 deletions

View File

@ -45,14 +45,13 @@ class CommunitySpaceManagementApi {
}
}
Future<CommunityModel?> createCommunity(String name, String description, String regionId) async {
Future<CommunityModel?> createCommunity(String name, String description) async {
try {
final response = await HTTPService().post(
path: ApiEndpoints.createCommunity,
body: {
'name': name,
'description': description,
'regionId': regionId,
},
expectedResponseModel: (json) {
return CommunityModel.fromJson(json['data']);