mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Add function to set speech to failed state
This commit is contained in:
parent
4ce7352013
commit
2298635e56
1 changed files with 9 additions and 0 deletions
9
packages/api/src/services/speech.ts
Normal file
9
packages/api/src/services/speech.ts
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import { getRepository } from '../entity/utils'
|
||||
import { Speech, SpeechState } from '../entity/speech'
|
||||
|
||||
export const setSpeechFailure = async (id: string) => {
|
||||
// update state
|
||||
await getRepository(Speech).update(id, {
|
||||
state: SpeechState.FAILED,
|
||||
})
|
||||
}
|
||||
Loading…
Reference in a new issue