mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2026-10-23 11:47:56 +00:00
fixed issues in space
This commit is contained in:
@@ -18,12 +18,13 @@ class SpacesAPI {
|
||||
final response = await _httpService.get(
|
||||
path: path,
|
||||
showServerMessage: false,
|
||||
expectedResponseModel: (json) => SpaceModel.fromJsonList(json['data']),
|
||||
expectedResponseModel: (json) {
|
||||
return SpaceModel.fromJsonList(json['data']);
|
||||
},
|
||||
);
|
||||
|
||||
return response;
|
||||
} catch (error) {
|
||||
print("Error in getSpacesByUserId: $error");
|
||||
rethrow; // Rethrow the error to be caught by `fetchUnitsByUserId`
|
||||
}
|
||||
}
|
||||
@@ -33,6 +34,7 @@ class SpacesAPI {
|
||||
final path = ApiEndpoints.listSubspace
|
||||
.replaceFirst('{communityUuid}', communityId)
|
||||
.replaceFirst('{spaceUuid}', spaceId);
|
||||
print("Constructed path: $path");
|
||||
|
||||
final response = await _httpService.get(
|
||||
path: path,
|
||||
|
||||
Reference in New Issue
Block a user