diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-13 14:23:01 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-20 15:27:18 +0200 |
commit | 7926c5f9b3ffcabb1ffb0dcfa5e48b8e0b88fbc0 (patch) | |
tree | 7a166515e4d57a06eb3c08be569f106ed049988b /shared/extra-utils/server/servers.ts | |
parent | d0a0fa429d4651710ed951a3c11af0219e408964 (diff) | |
download | PeerTube-7926c5f9b3ffcabb1ffb0dcfa5e48b8e0b88fbc0.tar.gz PeerTube-7926c5f9b3ffcabb1ffb0dcfa5e48b8e0b88fbc0.tar.zst PeerTube-7926c5f9b3ffcabb1ffb0dcfa5e48b8e0b88fbc0.zip |
Introduce user command
Diffstat (limited to 'shared/extra-utils/server/servers.ts')
-rw-r--r-- | shared/extra-utils/server/servers.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/shared/extra-utils/server/servers.ts b/shared/extra-utils/server/servers.ts index 4d9599680..b6d597c5d 100644 --- a/shared/extra-utils/server/servers.ts +++ b/shared/extra-utils/server/servers.ts | |||
@@ -16,7 +16,7 @@ import { AbusesCommand } from '../moderation' | |||
16 | import { OverviewsCommand } from '../overviews' | 16 | import { OverviewsCommand } from '../overviews' |
17 | import { SearchCommand } from '../search' | 17 | import { SearchCommand } from '../search' |
18 | import { SocketIOCommand } from '../socket' | 18 | import { SocketIOCommand } from '../socket' |
19 | import { AccountsCommand, BlocklistCommand, LoginCommand, NotificationsCommand, SubscriptionsCommand } from '../users' | 19 | import { AccountsCommand, BlocklistCommand, LoginCommand, NotificationsCommand, SubscriptionsCommand, UsersCommand } from '../users' |
20 | import { | 20 | import { |
21 | BlacklistCommand, | 21 | BlacklistCommand, |
22 | CaptionsCommand, | 22 | CaptionsCommand, |
@@ -127,6 +127,7 @@ interface ServerInfo { | |||
127 | notificationsCommand?: NotificationsCommand | 127 | notificationsCommand?: NotificationsCommand |
128 | serversCommand?: ServersCommand | 128 | serversCommand?: ServersCommand |
129 | loginCommand?: LoginCommand | 129 | loginCommand?: LoginCommand |
130 | usersCommand?: UsersCommand | ||
130 | } | 131 | } |
131 | 132 | ||
132 | function flushAndRunMultipleServers (totalServers: number, configOverride?: Object) { | 133 | function flushAndRunMultipleServers (totalServers: number, configOverride?: Object) { |
@@ -359,6 +360,7 @@ function assignCommands (server: ServerInfo) { | |||
359 | server.notificationsCommand = new NotificationsCommand(server) | 360 | server.notificationsCommand = new NotificationsCommand(server) |
360 | server.serversCommand = new ServersCommand(server) | 361 | server.serversCommand = new ServersCommand(server) |
361 | server.loginCommand = new LoginCommand(server) | 362 | server.loginCommand = new LoginCommand(server) |
363 | server.usersCommand = new UsersCommand(server) | ||
362 | } | 364 | } |
363 | 365 | ||
364 | async function reRunServer (server: ServerInfo, configOverride?: any) { | 366 | async function reRunServer (server: ServerInfo, configOverride?: any) { |