diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-11-15 11:00:25 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-11-27 19:40:51 +0100 |
commit | 608624252466acf9f1d9ee1c1170bd4fe4d18d18 (patch) | |
tree | 47eab55bb5421b7fe88e0b2ac743a436fd9561cf /server/helpers/custom-validators/videos.ts | |
parent | 51548b31815c6f96f314ae96588a9adca150519d (diff) | |
download | PeerTube-608624252466acf9f1d9ee1c1170bd4fe4d18d18.tar.gz PeerTube-608624252466acf9f1d9ee1c1170bd4fe4d18d18.tar.zst PeerTube-608624252466acf9f1d9ee1c1170bd4fe4d18d18.zip |
Rename Pod -> Server
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 => { |