修改仓储
This commit is contained in:
@@ -93,7 +93,7 @@ namespace IRaCIS.Application.Services
|
||||
return ResponseOutput.NotOk("The mailbox for this user type already exists");
|
||||
}
|
||||
|
||||
await _userRepository.UpdateNowNoQueryAsync(_userInfo.Id, u => new User()
|
||||
await _userRepository.UpdatePartialNowNoQueryAsync(_userInfo.Id, u => new User()
|
||||
{
|
||||
EMail = newEmail
|
||||
});
|
||||
@@ -113,7 +113,7 @@ namespace IRaCIS.Application.Services
|
||||
{
|
||||
|
||||
|
||||
await _userRepository.UpdateNowNoQueryAsync(_userInfo.Id, u => new User()
|
||||
await _userRepository.UpdatePartialNowNoQueryAsync(_userInfo.Id, u => new User()
|
||||
{
|
||||
Phone = newPhone
|
||||
});
|
||||
@@ -130,7 +130,7 @@ namespace IRaCIS.Application.Services
|
||||
{
|
||||
return ResponseOutput.NotOk("UserId already exists");
|
||||
}
|
||||
await _userRepository.UpdateNowNoQueryAsync(_userInfo.Id, u => new User()
|
||||
await _userRepository.UpdatePartialNowNoQueryAsync(_userInfo.Id, u => new User()
|
||||
{
|
||||
UserName = newUserName
|
||||
});
|
||||
@@ -148,7 +148,7 @@ namespace IRaCIS.Application.Services
|
||||
|
||||
public async Task<IResponseOutput> ResetPassword(Guid userId)
|
||||
{
|
||||
await _userRepository.UpdateNowNoQueryAsync(userId, u => new User()
|
||||
await _userRepository.UpdatePartialNowNoQueryAsync(userId, u => new User()
|
||||
{
|
||||
Password = MD5Helper.Md5(StaticData.DefaultPassword),
|
||||
IsFirstAdd = true
|
||||
|
||||
Reference in New Issue
Block a user