清理代码
Some checks failed
ci / release-gate (push) Has been cancelled

This commit is contained in:
2026-08-03 12:31:39 +08:00
parent caea0062b0
commit c497a3ca8d
537 changed files with 14171 additions and 12503 deletions

View File

@@ -78,7 +78,8 @@ internal sealed class PlatformOperationsQueryService(
.Where(item => item.Status == BackgroundJobStatus.Pending)
.MinAsync(item => (DateTimeOffset?)item.CreatedAt, cancellationToken);
var expired = await dbContext.BackgroundJobs.AsNoTracking()
.CountAsync(item => item.Status == BackgroundJobStatus.Processing && item.LockExpiresAt < now, cancellationToken);
.CountAsync(item => item.Status == BackgroundJobStatus.Processing && item.LockExpiresAt < now,
cancellationToken);
return new PlatformJobMetrics(
counts,
oldest,
@@ -96,7 +97,8 @@ internal sealed class PlatformOperationsQueryService(
.Select(group => new PlatformMetricCount(group.Key.ToString(), group.Count()))
.ToArrayAsync(cancellationToken);
var expired = await dbContext.PlatformApprovalRequests.AsNoTracking()
.CountAsync(item => item.Status == PlatformApprovalRequestStatus.Pending && item.ExpiresAt <= now, cancellationToken);
.CountAsync(item => item.Status == PlatformApprovalRequestStatus.Pending && item.ExpiresAt <= now,
cancellationToken);
var drafts = await dbContext.PlatformConfigurationVersions.AsNoTracking()
.CountAsync(item => item.Status == PlatformConfigurationVersionStatus.Draft, cancellationToken);
var notifications = await dbContext.PlatformNotificationDeliveries.AsNoTracking()
@@ -105,4 +107,4 @@ internal sealed class PlatformOperationsQueryService(
.ToArrayAsync(cancellationToken);
return new PlatformGovernanceMetrics(approvals, expired, drafts, notifications, now);
}
}
}