]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/lib/jobs/handlers/video-transcoder.ts
Use global uuid instead of remoteId for videos
[github/Chocobozzz/PeerTube.git] / server / lib / jobs / handlers / video-transcoder.ts
index eeb2d57b04d0d04b19ff60d1b8174630c292ba5c..0d32dfd2fcc043de2109601888ff987b5b76d0cc 100644 (file)
@@ -3,8 +3,8 @@ import { logger } from '../../../helpers'
 import { addVideoToFriends } from '../../../lib'
 import { VideoInstance } from '../../../models'
 
-function process (data: { id: string }) {
-  return db.Video.loadAndPopulateAuthorAndPodAndTags(data.id).then(video => {
+function process (data: { videoUUID: string }) {
+  return db.Video.loadByUUIDAndPopulateAuthorAndPodAndTags(data.videoUUID).then(video => {
     return video.transcodeVideofile().then(() => video)
   })
 }