Skip to content

Commit fef483d

Browse files
author
Bart Koelman
committed
Fixed: crash when using obfuscated IDs
1 parent 2d5bc99 commit fef483d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JsonApiDotNetCore/Services/DefaultResourceService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ public virtual async Task<TResource> UpdateAsync(TId id, TResource requestEntity
213213
}
214214

215215
_repository.FlushFromCache(databaseEntity);
216-
TResource afterEntity = await _repository.Get(databaseEntity.Id).FirstOrDefaultAsync();
216+
TResource afterEntity = await _repository.Get(id).FirstOrDefaultAsync();
217217
_resourceChangeTracker.SetFinallyStoredAttributeValues(afterEntity);
218218

219219
bool hasImplicitChanges = _resourceChangeTracker.HasImplicitChanges();

0 commit comments

Comments
 (0)