mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
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>
This commit is contained in:
parent
3779cc3d88
commit
6e9f260348
1 changed files with 0 additions and 3 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Reference in a new issue