aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/video-state.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-11-09 11:52:41 +0100
committerChocobozzz <chocobozzz@cpy.re>2021-11-09 15:00:21 +0100
commit221ee1adc916684d4881d2a9c4c01954dcde986e (patch)
treef456a3f3e1fcc2d8dbd3cc6f0d72a4cb2cbbadc2 /server/lib/video-state.ts
parent4e29f4fe23b413cc8c55ac0d8373f36bcd60b47a (diff)
downloadPeerTube-221ee1adc916684d4881d2a9c4c01954dcde986e.tar.gz
PeerTube-221ee1adc916684d4881d2a9c4c01954dcde986e.tar.zst
PeerTube-221ee1adc916684d4881d2a9c4c01954dcde986e.zip
Add transcoding fail message in client
Diffstat (limited to 'server/lib/video-state.ts')
-rw-r--r--server/lib/video-state.ts8
1 files changed, 3 insertions, 5 deletions
diff --git a/server/lib/video-state.ts b/server/lib/video-state.ts
index 2260e90f5..0b51f5c6b 100644
--- a/server/lib/video-state.ts
+++ b/server/lib/video-state.ts
@@ -79,10 +79,8 @@ async function moveToExternalStorageState (video: MVideoFullLight, isNewVideo: b
79 } 79 }
80} 80}
81 81
82function moveToFailedState (video: MVideoFullLight) { 82function moveToFailedTranscodingState (video: MVideoFullLight) {
83 return sequelizeTypescript.transaction(async t => { 83 return video.setNewState(VideoState.TRANSCODING_FAILED, false, undefined)
84 await video.setNewState(VideoState.TRANSCODING_FAILED, false, t)
85 })
86} 84}
87 85
88// --------------------------------------------------------------------------- 86// ---------------------------------------------------------------------------
@@ -90,7 +88,7 @@ function moveToFailedState (video: MVideoFullLight) {
90export { 88export {
91 buildNextVideoState, 89 buildNextVideoState,
92 moveToExternalStorageState, 90 moveToExternalStorageState,
93 moveToFailedState, 91 moveToFailedTranscodingState,
94 moveToNextState 92 moveToNextState
95} 93}
96 94