Skip to content

Commit eba9e05

Browse files
Fixed invalid csrf in admin login + Fixed EnrichmentCleanUp failureCause message
1 parent d75a3c2 commit eba9e05

File tree

2 files changed

+4
-15
lines changed

2 files changed

+4
-15
lines changed

config/packages/csrf.yaml

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/Command/EnrichmentCleanUp.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,19 +52,19 @@ protected function execute(InputInterface $input, OutputInterface $output): int
5252
foreach ($enrichments as $enrichment) {
5353
$failureCause = '';
5454

55-
if ($enrichment->getTranscriptionRetries() > $maxTranscriptionRetries) {
55+
if ($enrichment->getTranscriptionRetries() >= $maxTranscriptionRetries) {
5656
$failureCause .= sprintf('Max transcription retries reached (%s)', $enrichment->getTranscriptionRetries());
5757
}
5858

59-
if ($enrichment->getEnrichmentRetries() > $maxEnrichmentRetries) {
59+
if ($enrichment->getEnrichmentRetries() >= $maxEnrichmentRetries) {
6060
$failureCause .= sprintf('Max enrichment retries reached (%s)', $enrichment->getEnrichmentRetries());
6161
}
6262

63-
if ($enrichment->getTranslationRetries() > $maxTranslationRetries) {
63+
if ($enrichment->getTranslationRetries() >= $maxTranslationRetries) {
6464
$failureCause .= sprintf('Max translation retries reached (%s)', $enrichment->getTranslationRetries());
6565
}
6666

67-
if ($enrichment->getEvaluationRetries() > $maxEvaluationRetries) {
67+
if ($enrichment->getEvaluationRetries() >= $maxEvaluationRetries) {
6868
$failureCause .= sprintf('Max evaluation retries reached (%s)', $enrichment->getEvaluationRetries());
6969
}
7070

0 commit comments

Comments
 (0)