mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Do not throw error if text is empty
This commit is contained in:
parent
8e8a6dccd0
commit
967fb3c6d5
1 changed files with 0 additions and 3 deletions
|
|
@ -160,9 +160,6 @@ export const textToSpeechStreamingHandler = Sentry.GCPFunction.wrapHttpFunction(
|
|||
|
||||
try {
|
||||
const utteranceInput = req.body as UtteranceInput
|
||||
if (!utteranceInput.text) {
|
||||
return res.status(400).send({ errorCode: 'INVALID_DATA' })
|
||||
}
|
||||
const input: TextToSpeechInput = {
|
||||
...utteranceInput,
|
||||
textType: 'utterance',
|
||||
|
|
|
|||
Loading…
Reference in a new issue