Skip to content

Commit 5ceff31

Browse files
committed
When updating the in-memory entity value, replace
We were not actually replacing the item in the update case.
1 parent 4b5e888 commit 5ceff31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TableStorage.Memory/MemoryRepository`1.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public async Task<T> PutAsync(T entity, CancellationToken cancellation = default
167167
(key, value) =>
168168
{
169169
key.Timestamp = DateTimeOffset.UtcNow;
170-
return SetTimestamp(value, key.Timestamp);
170+
return SetTimestamp(entity, key.Timestamp);
171171
}
172172
);
173173

0 commit comments

Comments
 (0)