aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/private/SpeechToText/SpeechToTextManager.php3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/private/SpeechToText/SpeechToTextManager.php b/lib/private/SpeechToText/SpeechToTextManager.php
index 93a74711e32..0c41c3cb600 100644
--- a/lib/private/SpeechToText/SpeechToTextManager.php
+++ b/lib/private/SpeechToText/SpeechToTextManager.php
@@ -94,9 +94,6 @@ class SpeechToTextManager implements ISpeechToTextManager {
throw new PreConditionNotMetException('No SpeechToText providers have been registered');
}
try {
- if ($this->jobList->has(TranscriptionJob::class, ['fileId' => $file->getId()])) {
- return;
- }
$this->jobList->add(TranscriptionJob::class, ['fileId' => $file->getId()]);
} catch (NotFoundException|InvalidPathException $e) {
throw new InvalidArgumentException('Invalid file provided for file transcription: ' . $e->getMessage());