From 6e9f260348b70cede507764db6d46ba72898973f Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Mon, 17 Apr 2023 15:49:50 +0200 Subject: [PATCH] Update lib/private/SpeechToText/SpeechToTextManager.php Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com> Signed-off-by: Marcel Klehr --- lib/private/SpeechToText/SpeechToTextManager.php | 3 --- 1 file changed, 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());