diff --git a/server/Tingle.Dependabot/Consumers/RepositoryEventsConsumer.cs b/server/Tingle.Dependabot/Consumers/RepositoryEventsConsumer.cs index d5caf706..9aa0f5dd 100644 --- a/server/Tingle.Dependabot/Consumers/RepositoryEventsConsumer.cs +++ b/server/Tingle.Dependabot/Consumers/RepositoryEventsConsumer.cs @@ -43,7 +43,6 @@ public async Task ConsumeAsync(EventContext context, Can // remove from scheduler var repositoryId = evt.RepositoryId ?? throw new InvalidOperationException($"'{nameof(evt.RepositoryId)}' cannot be null"); - var repository = await dbContext.Repositories.SingleAsync(r => r.Id == repositoryId, cancellationToken); await scheduler.RemoveAsync(repositoryId, cancellationToken); } }