Skip to content

Commit

Permalink
feat:user detail
Browse files Browse the repository at this point in the history
  • Loading branch information
MayueCif committed Jul 25, 2023
1 parent 62e77a2 commit 36106ab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ public async Task SyncUserAutoCompleteAsync(SyncUserAutoCompleteCommand command)

private async Task<User> CheckUserExistAsync(Guid userId)
{
var user = await _userRepository.FindAsync(u => u.Id == userId);
var user = await _userRepository.GetDetailAsync(userId);
if (user is null)
throw new UserFriendlyException(errorCode: UserFriendlyExceptionCodes.USER_NOT_EXIST);

Expand Down

0 comments on commit 36106ab

Please sign in to comment.