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 83407f17b..487b3d646 100644 --- a/server/helpers/custom-validators/videos.ts +++ b/server/helpers/custom-validators/videos.ts | |||
@@ -166,9 +166,9 @@ function isVideoFileInfoHashValid (value: string) { | |||
166 | function checkVideoExists (id: string, res: express.Response, callback: () => void) { | 166 | function checkVideoExists (id: string, res: express.Response, callback: () => void) { |
167 | let promise: Promise<VideoInstance> | 167 | let promise: Promise<VideoInstance> |
168 | if (validator.isInt(id)) { | 168 | if (validator.isInt(id)) { |
169 | promise = db.Video.loadAndPopulateAuthorAndPodAndTags(+id) | 169 | promise = db.Video.loadAndPopulateAccountAndPodAndTags(+id) |
170 | } else { // UUID | 170 | } else { // UUID |
171 | promise = db.Video.loadByUUIDAndPopulateAuthorAndPodAndTags(id) | 171 | promise = db.Video.loadByUUIDAndPopulateAccountAndPodAndTags(id) |
172 | } | 172 | } |
173 | 173 | ||
174 | promise.then(video => { | 174 | promise.then(video => { |