From 3932b24fda9cc9d28a6474436760e572fd99d8cd Mon Sep 17 00:00:00 2001 From: chenchun Date: Mon, 2 Dec 2024 10:11:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=AE=A1=E8=AE=A1?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E6=97=A0=E5=B7=A5=E4=BD=9C=E5=8D=95=E5=85=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Yi.Framework.AuditLogging.Domain/AuditingStore.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Yi.Abp.Net8/module/audit-logging/Yi.Framework.AuditLogging.Domain/AuditingStore.cs b/Yi.Abp.Net8/module/audit-logging/Yi.Framework.AuditLogging.Domain/AuditingStore.cs index d405eb1a..a25351bc 100644 --- a/Yi.Abp.Net8/module/audit-logging/Yi.Framework.AuditLogging.Domain/AuditingStore.cs +++ b/Yi.Abp.Net8/module/audit-logging/Yi.Framework.AuditLogging.Domain/AuditingStore.cs @@ -53,10 +53,10 @@ public class AuditingStore : IAuditingStore, ITransientDependency protected virtual async Task SaveLogAsync(AuditLogInfo auditInfo) { Logger.LogDebug("Yi-请求追踪:" + JsonHelper.ObjToStr(auditInfo, "yyyy-MM-dd HH:mm:ss")); - // using (var uow = UnitOfWorkManager.Begin(true,isTransactional:false)) - // { - await AuditLogRepository.InsertAsync(await Converter.ConvertAsync(auditInfo)); - // await uow.CompleteAsync(); - // } + using (var uow = UnitOfWorkManager.Begin(true,isTransactional:false)) + { + await AuditLogRepository.InsertAsync(await Converter.ConvertAsync(auditInfo)); + await uow.CompleteAsync(); + } } } \ No newline at end of file