aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/video-state.ts
diff options
context:
space:
mode:
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