diff --git a/samples/Patterns/Patterns/01.OneToOne/PlayerRepo.cs b/samples/Patterns/Patterns/01.OneToOne/PlayerRepo.cs index 8e6b2f3..1f4ff0e 100644 --- a/samples/Patterns/Patterns/01.OneToOne/PlayerRepo.cs +++ b/samples/Patterns/Patterns/01.OneToOne/PlayerRepo.cs @@ -72,7 +72,7 @@ namespace Patterns.OneToOne new RequestOptions { PartitionKey = new PartitionKey(updatedInfo.Id) }); AccessCondition condition = new AccessCondition { Condition = player.ETag, Type = AccessConditionType.IfMatch }; - await client.ReplaceDocumentAsync(documentUri, player, new RequestOptions { AccessCondition = condition }); + await client.ReplaceDocumentAsync(documentUri, updatedInfo, new RequestOptions { AccessCondition = condition }); } } }