From 5d748d189fe65b1e98b8a9f83d6884d32413ab0c Mon Sep 17 00:00:00 2001 From: ruanbl Date: Thu, 4 Jun 2026 10:53:50 +0800 Subject: [PATCH] fix userInactiveDeleteNull --- .../Session/IdentitySessionUserInactiveSynchronizer.cs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/aspnet-core/modules/identity/LINGYUN.Abp.Identity.Domain/LINGYUN/Abp/Identity/Session/IdentitySessionUserInactiveSynchronizer.cs b/aspnet-core/modules/identity/LINGYUN.Abp.Identity.Domain/LINGYUN/Abp/Identity/Session/IdentitySessionUserInactiveSynchronizer.cs index 3f458a83c..8c26cdfb6 100644 --- a/aspnet-core/modules/identity/LINGYUN.Abp.Identity.Domain/LINGYUN/Abp/Identity/Session/IdentitySessionUserInactiveSynchronizer.cs +++ b/aspnet-core/modules/identity/LINGYUN.Abp.Identity.Domain/LINGYUN/Abp/Identity/Session/IdentitySessionUserInactiveSynchronizer.cs @@ -1,10 +1,4 @@ -using System.Threading.Tasks; -using Volo.Abp.DependencyInjection; -using Volo.Abp.Domain.Entities.Events.Distributed; -using Volo.Abp.EventBus.Distributed; -using Volo.Abp.Uow; - -namespace LINGYUN.Abp.Identity.Session; +namespace LINGYUN.Abp.Identity.Session; public class IdentitySessionUserInactiveSynchronizer : IDistributedEventHandler>, @@ -21,7 +15,7 @@ public class IdentitySessionUserInactiveSynchronizer : public async virtual Task HandleEventAsync(EntityCreatedEto eventData) { var userInactive = await _identityUserInactiveRepository.FindByUserIdAsync(eventData.Entity.UserId); - if (userInactive == null) + if (userInactive != null) { await _identityUserInactiveRepository.DeleteAsync(userInactive); }