|
@@ -66,8 +66,8 @@ namespace TEAMModelFunction
|
|
jsonMsg.RootElement.TryGetProperty("code", out JsonElement code);
|
|
jsonMsg.RootElement.TryGetProperty("code", out JsonElement code);
|
|
//Dictionary<string, object> keyValuePairs = mySbMsg.ToObject<Dictionary<string, object>>();
|
|
//Dictionary<string, object> keyValuePairs = mySbMsg.ToObject<Dictionary<string, object>>();
|
|
var client = _azureCosmos.GetCosmosClient();
|
|
var client = _azureCosmos.GetCosmosClient();
|
|
- Vote vote = await client.GetContainer("TEAMModelOS", "Common").ReadItemAsync<Vote>(id.ToString(), new PartitionKey($"{code}"));
|
|
|
|
- vote.progress = progress.ToString();
|
|
|
|
|
|
+ ItemResponse <Vote> vote = await client.GetContainer("TEAMModelOS", "Common").ReadItemAsync<Vote>(id.ToString(), new PartitionKey($"{code}"));
|
|
|
|
+ vote.Value.progress = progress.ToString();
|
|
await client.GetContainer("TEAMModelOS", "Common").ReplaceItemAsync(vote, id.ToString(), new PartitionKey($"{code}"));
|
|
await client.GetContainer("TEAMModelOS", "Common").ReplaceItemAsync(vote, id.ToString(), new PartitionKey($"{code}"));
|
|
}
|
|
}
|
|
catch (Exception ex)
|
|
catch (Exception ex)
|