mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Enqueue text to speech task after creating article
This commit is contained in:
parent
447e413605
commit
c74f2bc3fd
1 changed files with 5 additions and 0 deletions
|
|
@ -94,6 +94,7 @@ import {
|
|||
updatePage,
|
||||
} from '../../elastic/pages'
|
||||
import { searchHighlights } from '../../elastic/highlights'
|
||||
import { enqueueTextToSpeech } from '../../utils/createTask'
|
||||
|
||||
export type PartialArticle = Omit<
|
||||
Article,
|
||||
|
|
@ -372,6 +373,10 @@ export const createArticleResolver = authorized<
|
|||
articleToSave.id = newPageId
|
||||
}
|
||||
|
||||
// enqueue a task to convert text to speech
|
||||
const taskName = await enqueueTextToSpeech(uid, articleToSave.id)
|
||||
log.info('Text to speech task name', { taskName })
|
||||
|
||||
log.info(
|
||||
'page created in elastic',
|
||||
articleToSave.id,
|
||||
|
|
|
|||
Loading…
Reference in a new issue