diff options
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 | } |