diff options
Diffstat (limited to 'server/helpers/custom-validators/videos.ts')
-rw-r--r-- | server/helpers/custom-validators/videos.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/helpers/custom-validators/videos.ts b/server/helpers/custom-validators/videos.ts index 715119cf6..d68de6609 100644 --- a/server/helpers/custom-validators/videos.ts +++ b/server/helpers/custom-validators/videos.ts | |||
@@ -171,9 +171,9 @@ function isVideoFileInfoHashValid (value: string) { | |||
171 | function checkVideoExists (id: string, res: express.Response, callback: () => void) { | 171 | function checkVideoExists (id: string, res: express.Response, callback: () => void) { |
172 | let promise: Promise<VideoInstance> | 172 | let promise: Promise<VideoInstance> |
173 | if (validator.isInt(id)) { | 173 | if (validator.isInt(id)) { |
174 | promise = db.Video.loadAndPopulateAccountAndPodAndTags(+id) | 174 | promise = db.Video.loadAndPopulateAccountAndServerAndTags(+id) |
175 | } else { // UUID | 175 | } else { // UUID |
176 | promise = db.Video.loadByUUIDAndPopulateAccountAndPodAndTags(id) | 176 | promise = db.Video.loadByUUIDAndPopulateAccountAndServerAndTags(id) |
177 | } | 177 | } |
178 | 178 | ||
179 | promise.then(video => { | 179 | promise.then(video => { |