import { extname } from 'path'
import { createTorrentAndSetInfoHash } from '@server/helpers/webtorrent'
import { generateVideoFilename, getVideoFilePath } from '@server/lib/video-paths'
-import { UserModel } from '@server/models/account/user'
+import { UserModel } from '@server/models/user/user'
import { MVideoFullLight } from '@server/types/models'
import { VideoFileImportPayload } from '@shared/models'
import { getVideoFileFPS, getVideoFileResolution } from '../../../helpers/ffprobe-utils'
await copy(inputFilePath, outputPath)
video.VideoFiles.push(newVideoFile)
- await createTorrentAndSetInfoHash(video, video, newVideoFile)
+ await createTorrentAndSetInfoHash(video, newVideoFile)
await newVideoFile.save()
}