diff --git a/src/Jiaowu.Api/Controllers/OperationsController.cs b/src/Jiaowu.Api/Controllers/OperationsController.cs index 0abde45..345bacc 100644 --- a/src/Jiaowu.Api/Controllers/OperationsController.cs +++ b/src/Jiaowu.Api/Controllers/OperationsController.cs @@ -330,7 +330,7 @@ public sealed class OperationsController( { var ids = pageItems.Select(x => x.Id).ToArray(); var attempts = await db.BackgroundJobOutboxMessages.AsNoTracking() - .Where(x => ids.Contains(x.JobId)) + .WhereIn(ids, x => x.JobId) .Select(x => new { x.JobId, x.ProcessingAttempts }) .ToDictionaryAsync(x => x.JobId, x => x.ProcessingAttempts, cancellationToken);