Improve create import file job

Fix federation of .ogv videos
This commit is contained in:
Chocobozzz 2018-06-07 09:43:18 +02:00
parent 0138af9237
commit 28be89161a
No known key found for this signature in database
GPG key ID: 583A612D890159BE
7 changed files with 48 additions and 34 deletions

View file

@ -27,6 +27,7 @@ async function run () {
const video = await VideoModel.loadByUUID(program['video'])
if (!video) throw new Error('Video not found.')
if (video.isOwned() === false) throw new Error('Cannot import files of a non owned video.')
const dataInput = {
videoUUID: video.uuid,