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/lib/video-channel.ts | |
parent | 51548b31815c6f96f314ae96588a9adca150519d (diff) | |
download | PeerTube-608624252466acf9f1d9ee1c1170bd4fe4d18d18.tar.gz PeerTube-608624252466acf9f1d9ee1c1170bd4fe4d18d18.tar.zst PeerTube-608624252466acf9f1d9ee1c1170bd4fe4d18d18.zip |
Rename Pod -> Server
Diffstat (limited to 'server/lib/video-channel.ts')
-rw-r--r-- | server/lib/video-channel.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/lib/video-channel.ts b/server/lib/video-channel.ts index 13841ea33..80303fb83 100644 --- a/server/lib/video-channel.ts +++ b/server/lib/video-channel.ts | |||
@@ -30,14 +30,14 @@ async function createVideoChannel (videoChannelInfo: VideoChannelCreate, account | |||
30 | return videoChannelCreated | 30 | return videoChannelCreated |
31 | } | 31 | } |
32 | 32 | ||
33 | async function fetchVideoChannelByHostAndUUID (podHost: string, uuid: string, t: Sequelize.Transaction) { | 33 | async function fetchVideoChannelByHostAndUUID (serverHost: string, uuid: string, t: Sequelize.Transaction) { |
34 | try { | 34 | try { |
35 | const videoChannel = await db.VideoChannel.loadByHostAndUUID(podHost, uuid, t) | 35 | const videoChannel = await db.VideoChannel.loadByHostAndUUID(serverHost, uuid, t) |
36 | if (!videoChannel) throw new Error('Video channel not found') | 36 | if (!videoChannel) throw new Error('Video channel not found') |
37 | 37 | ||
38 | return videoChannel | 38 | return videoChannel |
39 | } catch (err) { | 39 | } catch (err) { |
40 | logger.error('Cannot load video channel from host and uuid.', { error: err.stack, podHost, uuid }) | 40 | logger.error('Cannot load video channel from host and uuid.', { error: err.stack, serverHost, uuid }) |
41 | throw err | 41 | throw err |
42 | } | 42 | } |
43 | } | 43 | } |