aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils/server
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-07-15 10:02:54 +0200
committerChocobozzz <me@florianbigard.com>2021-07-20 15:27:18 +0200
commitd23dd9fbfc4d26026352c10f81d2795ceaf2908a (patch)
treeda82286d423c5e834a1ee2dcd5970076b8263cf1 /shared/extra-utils/server
parent7926c5f9b3ffcabb1ffb0dcfa5e48b8e0b88fbc0 (diff)
downloadPeerTube-d23dd9fbfc4d26026352c10f81d2795ceaf2908a.tar.gz
PeerTube-d23dd9fbfc4d26026352c10f81d2795ceaf2908a.tar.zst
PeerTube-d23dd9fbfc4d26026352c10f81d2795ceaf2908a.zip
Introduce videos command
Diffstat (limited to 'shared/extra-utils/server')
-rw-r--r--shared/extra-utils/server/servers.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/shared/extra-utils/server/servers.ts b/shared/extra-utils/server/servers.ts
index b6d597c5d..fda5c3d6d 100644
--- a/shared/extra-utils/server/servers.ts
+++ b/shared/extra-utils/server/servers.ts
@@ -27,7 +27,8 @@ import {
27 LiveCommand, 27 LiveCommand,
28 PlaylistsCommand, 28 PlaylistsCommand,
29 ServicesCommand, 29 ServicesCommand,
30 StreamingPlaylistsCommand 30 StreamingPlaylistsCommand,
31 VideosCommand
31} from '../videos' 32} from '../videos'
32import { CommentsCommand } from '../videos/comments-command' 33import { CommentsCommand } from '../videos/comments-command'
33import { ConfigCommand } from './config-command' 34import { ConfigCommand } from './config-command'
@@ -128,6 +129,7 @@ interface ServerInfo {
128 serversCommand?: ServersCommand 129 serversCommand?: ServersCommand
129 loginCommand?: LoginCommand 130 loginCommand?: LoginCommand
130 usersCommand?: UsersCommand 131 usersCommand?: UsersCommand
132 videosCommand?: VideosCommand
131} 133}
132 134
133function flushAndRunMultipleServers (totalServers: number, configOverride?: Object) { 135function flushAndRunMultipleServers (totalServers: number, configOverride?: Object) {
@@ -361,6 +363,7 @@ function assignCommands (server: ServerInfo) {
361 server.serversCommand = new ServersCommand(server) 363 server.serversCommand = new ServersCommand(server)
362 server.loginCommand = new LoginCommand(server) 364 server.loginCommand = new LoginCommand(server)
363 server.usersCommand = new UsersCommand(server) 365 server.usersCommand = new UsersCommand(server)
366 server.videosCommand = new VideosCommand(server)
364} 367}
365 368
366async function reRunServer (server: ServerInfo, configOverride?: any) { 369async function reRunServer (server: ServerInfo, configOverride?: any) {