diff options
author | Marcel Klehr <mklehr@gmx.net> | 2023-04-17 15:49:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-17 15:49:50 +0200 |
commit | 6e9f260348b70cede507764db6d46ba72898973f (patch) | |
tree | 70f0e1a5c8092c5bb3d9e9a7b56c412379c92665 /lib | |
parent | 3779cc3d88ffa65ce312588cccc602a5fbe341f4 (diff) | |
download | nextcloud-server-6e9f260348b70cede507764db6d46ba72898973f.tar.gz nextcloud-server-6e9f260348b70cede507764db6d46ba72898973f.zip |
Update lib/private/SpeechToText/SpeechToTextManager.php
Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/SpeechToText/SpeechToTextManager.php | 3 |
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()); |