From eb3b664898e654ad5a78454e230dc46b9c8d87ab Mon Sep 17 00:00:00 2001 From: duia <58941749+duiapro@users.noreply.github.com> Date: Tue, 19 Mar 2024 13:23:40 +0800 Subject: [PATCH] fix: add LdapUpsertAsync SaveChangesAsync (#1268) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat:修改默认日志级别 * fix:add LdapUpsertAsync SaveChangesAsync --- .../Application/Subjects/LdapCommandHandler.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Services/Masa.Auth.Service.Admin/Application/Subjects/LdapCommandHandler.cs b/src/Services/Masa.Auth.Service.Admin/Application/Subjects/LdapCommandHandler.cs index d6cbe8c14..37618a060 100644 --- a/src/Services/Masa.Auth.Service.Admin/Application/Subjects/LdapCommandHandler.cs +++ b/src/Services/Masa.Auth.Service.Admin/Application/Subjects/LdapCommandHandler.cs @@ -71,6 +71,7 @@ public async Task LdapUpsertAsync(LdapUpsertCommand ldapUpsertCommand) await _ldapIdpRepository.UpdateAsync(dbItem); } + await _unitOfWork.SaveChangesAsync(); var ldapUsers = await ldapProvider.GetAllUserAsync().ToListAsync(); await _ldapDomainService.SyncLdapUserAsync(ldapUsers); }