|
@@ -239,7 +239,7 @@ namespace TEAMModelOS.Controllers
|
|
|
List<Share> shares = new List<Share>();
|
|
|
if (!request.TryGetProperty("code", out JsonElement code)) { return BadRequest(); }
|
|
|
if (!request.TryGetProperty("type", out JsonElement type)) { return BadRequest(); }
|
|
|
- if (!request.TryGetProperty("id", out JsonElement id)) { return BadRequest(); }
|
|
|
+ request.TryGetProperty("id", out JsonElement id);
|
|
|
var client = _azureCosmos.GetCosmosClient();
|
|
|
StringBuilder queryText = new StringBuilder("select value(c) from c");
|
|
|
if (type.ValueKind.Equals(JsonValueKind.String) && type.GetString() == "coedit")
|