diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-11-10 14:48:08 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-11-27 19:40:51 +0100 |
commit | 38fa2065831b5f55be0d7f30f19a62c967397208 (patch) | |
tree | 4a986465e3a88c85bc6a8b5fc992e0f2edd63ef0 /server/helpers/custom-validators/video-channels.ts | |
parent | 0d0e8dd0904b380b70e19ebcb4763d65601c4632 (diff) | |
download | PeerTube-38fa2065831b5f55be0d7f30f19a62c967397208.tar.gz PeerTube-38fa2065831b5f55be0d7f30f19a62c967397208.tar.zst PeerTube-38fa2065831b5f55be0d7f30f19a62c967397208.zip |
Remove references to author
Diffstat (limited to 'server/helpers/custom-validators/video-channels.ts')
-rw-r--r-- | server/helpers/custom-validators/video-channels.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/helpers/custom-validators/video-channels.ts b/server/helpers/custom-validators/video-channels.ts index b6be557e6..acc42f4a4 100644 --- a/server/helpers/custom-validators/video-channels.ts +++ b/server/helpers/custom-validators/video-channels.ts | |||
@@ -26,9 +26,9 @@ function isVideoChannelUUIDValid (value: string) { | |||
26 | function checkVideoChannelExists (id: string, res: express.Response, callback: () => void) { | 26 | function checkVideoChannelExists (id: string, res: express.Response, callback: () => void) { |
27 | let promise: Promise<VideoChannelInstance> | 27 | let promise: Promise<VideoChannelInstance> |
28 | if (validator.isInt(id)) { | 28 | if (validator.isInt(id)) { |
29 | promise = db.VideoChannel.loadAndPopulateAuthor(+id) | 29 | promise = db.VideoChannel.loadAndPopulateAccount(+id) |
30 | } else { // UUID | 30 | } else { // UUID |
31 | promise = db.VideoChannel.loadByUUIDAndPopulateAuthor(id) | 31 | promise = db.VideoChannel.loadByUUIDAndPopulateAccount(id) |
32 | } | 32 | } |
33 | 33 | ||
34 | promise.then(videoChannel => { | 34 | promise.then(videoChannel => { |