aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tools/test-live.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-07-16 09:04:35 +0200
committerChocobozzz <me@florianbigard.com>2021-07-20 15:27:18 +0200
commit89d241a79c262b9775c233b73cff080043ebb5e6 (patch)
treecb3b6cb431d25d891ef4e02f66c61d252d17048f /server/tools/test-live.ts
parentd23dd9fbfc4d26026352c10f81d2795ceaf2908a (diff)
downloadPeerTube-89d241a79c262b9775c233b73cff080043ebb5e6.tar.gz
PeerTube-89d241a79c262b9775c233b73cff080043ebb5e6.tar.zst
PeerTube-89d241a79c262b9775c233b73cff080043ebb5e6.zip
Shorter server command names
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: {