diff options
Diffstat (limited to 'server/lib/video-state.ts')
-rw-r--r-- | server/lib/video-state.ts | 8 |
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 | ||
82 | function moveToFailedState (video: MVideoFullLight) { | 82 | function 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) { | |||
90 | export { | 88 | export { |
91 | buildNextVideoState, | 89 | buildNextVideoState, |
92 | moveToExternalStorageState, | 90 | moveToExternalStorageState, |
93 | moveToFailedState, | 91 | moveToFailedTranscodingState, |
94 | moveToNextState | 92 | moveToNextState |
95 | } | 93 | } |
96 | 94 | ||