Browse Source
Merge pull request #1494 from ruanbl/fix/userInactiveDeleteNull
fix userInactiveDeleteNull
pull/1495/head
yx lin
4 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
8 deletions
-
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<EntityCreatedEto<IdentitySessionEto>>, |
|
|
|
@ -21,7 +15,7 @@ public class IdentitySessionUserInactiveSynchronizer : |
|
|
|
public async virtual Task HandleEventAsync(EntityCreatedEto<IdentitySessionEto> eventData) |
|
|
|
{ |
|
|
|
var userInactive = await _identityUserInactiveRepository.FindByUserIdAsync(eventData.Entity.UserId); |
|
|
|
if (userInactive == null) |
|
|
|
if (userInactive != null) |
|
|
|
{ |
|
|
|
await _identityUserInactiveRepository.DeleteAsync(userInactive); |
|
|
|
} |
|
|
|
|