|
@@ -283,13 +283,12 @@ namespace TEAMModelOS.Controllers
|
|
|
Area areaa = null;
|
|
|
if (areas.Count > 0) {
|
|
|
roles.Add("area");
|
|
|
-
|
|
|
if (!string.IsNullOrEmpty($"{areas[0]}"))
|
|
|
{
|
|
|
|
|
|
try
|
|
|
{
|
|
|
- areaa = await client.GetContainer(Constant.TEAMModelOS, "School").ReadItemAsync<Area>($"{{areas[0]}}", new PartitionKey("Base-Area"));
|
|
|
+ areaa = await client.GetContainer(Constant.TEAMModelOS, "School").ReadItemAsync<Area>($"{areas[0].areaId}", new PartitionKey("Base-Area"));
|
|
|
}
|
|
|
catch (CosmosException)
|
|
|
{
|