Compare commits
2 commits
1dc37d3282
...
1b54a6d6a6
Author | SHA1 | Date | |
---|---|---|---|
![]() |
1b54a6d6a6 | ||
![]() |
4216535016 |
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ public class ApplicationUserService(ApplicationDbContext context)
|
|||
{
|
||||
var appUserId = identity.FindFirst(ClaimTypes.NameIdentifier)?.Value;
|
||||
var profile = await _context.UserProfiles
|
||||
.FirstOrDefaultAsync(x => x.ApplicationUserId.ToString() == appUserId)
|
||||
.FirstOrDefaultAsync(x => x.ApplicationUserId.ToString() == appUserId && !x.IsDeleted)
|
||||
?? throw new NotFoundException();
|
||||
|
||||
return profile;
|
||||
|
|
Loading…
Reference in a new issue