Skip to content

Commit 3ffb6b3

Browse files
committed
fix(default-entity-repo): return the updated entity when patching
1 parent 6ce8874 commit 3ffb6b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JsonApiDotNetCore/Data/DefaultEntityRepository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public async Task<TEntity> UpdateAsync(TId id, TEntity entity)
6666

6767
await _context.SaveChangesAsync();
6868

69-
return entity;
69+
return oldEntity;
7070
}
7171

7272
public async Task<bool> DeleteAsync(TId id)

0 commit comments

Comments
 (0)