ActivityPub-federated video streaming platform using P2P directly in your web browser
Prevent "Cannot use same state" error
Chocobozzz690bad52e186
diff --git a/server/lib/video-state.ts b/server/lib/video-state.tsindex 9ebbd76796..893725d850 100644--- a/server/lib/video-state.ts+++ b/server/lib/video-state.ts@@ -82,7 +82,10 @@ async function moveToExternalStorageState (options: {if (pendingTranscode !== 0) return falseconst previousVideoState = video.state- await video.setNewState(VideoState.TO_MOVE_TO_EXTERNAL_STORAGE, isNewVideo, transaction)++ if (video.state !== VideoState.TO_MOVE_TO_EXTERNAL_STORAGE) {+ await video.setNewState(VideoState.TO_MOVE_TO_EXTERNAL_STORAGE, isNewVideo, transaction)+ }logger.info('Creating external storage move job for video %s.', video.uuid, { tags: [ video.uuid ] })