Browse Source
Update MongoOpenIddictAuthorizationRepository.cs
pull/15417/head
maliming
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
modules/openiddict/src/Volo.Abp.OpenIddict.MongoDB/Volo/Abp/OpenIddict/Authorizations/MongoOpenIddictAuthorizationRepository.cs
|
|
|
@ -74,7 +74,7 @@ public class MongoOpenIddictAuthorizationRepository : MongoDbRepository<OpenIddi |
|
|
|
|
|
|
|
await DeleteManyAsync(await (await GetMongoQueryableAsync(cancellationToken)) |
|
|
|
.Where(x => x.CreationDate < date) |
|
|
|
.Where(x => x.Status == OpenIddictConstants.Statuses.Valid || (x.Type == OpenIddictConstants.AuthorizationTypes.AdHoc && !tokens.Contains(x.Id))) |
|
|
|
.Where(x => x.Status != OpenIddictConstants.Statuses.Valid || (x.Type == OpenIddictConstants.AuthorizationTypes.AdHoc && !tokens.Contains(x.Id))) |
|
|
|
.ToListAsync(cancellationToken: cancellationToken), cancellationToken: cancellationToken); |
|
|
|
} |
|
|
|
} |
|
|
|
|