aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tools/test-live.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tools/test-live.ts')
-rw-r--r--server/tools/test-live.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/tools/test-live.ts b/server/tools/test-live.ts
index 7004e98e8..bc31b6926 100644
--- a/server/tools/test-live.ts
+++ b/server/tools/test-live.ts
@@ -54,15 +54,15 @@ async function run () {
54 const attributes: LiveVideoCreate = { 54 const attributes: LiveVideoCreate = {
55 name: 'live', 55 name: 'live',
56 saveReplay: true, 56 saveReplay: true,
57 channelId: server.videoChannel.id, 57 channelId: server.store.channel.id,
58 privacy: VideoPrivacy.PUBLIC 58 privacy: VideoPrivacy.PUBLIC
59 } 59 }
60 60
61 console.log('Creating live.') 61 console.log('Creating live.')
62 62
63 const { uuid: liveVideoUUID } = await server.liveCommand.create({ fields: attributes }) 63 const { uuid: liveVideoUUID } = await server.live.create({ fields: attributes })
64 64
65 const live = await server.liveCommand.get({ videoId: liveVideoUUID }) 65 const live = await server.live.get({ videoId: liveVideoUUID })
66 66
67 console.log('Sending RTMP stream.') 67 console.log('Sending RTMP stream.')
68 68
@@ -82,7 +82,7 @@ async function run () {
82// ---------------------------------------------------------------------------- 82// ----------------------------------------------------------------------------
83 83
84async function buildConfig (server: ServerInfo, commandType: CommandType) { 84async function buildConfig (server: ServerInfo, commandType: CommandType) {
85 await server.configCommand.updateCustomSubConfig({ 85 await server.config.updateCustomSubConfig({
86 newConfig: { 86 newConfig: {
87 instance: { 87 instance: {
88 customizations: { 88 customizations: {