diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-09 16:23:01 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-20 15:27:18 +0200 |
commit | dd0ebb715123dfa126a82d4e4fe3a04064ae77b8 (patch) | |
tree | e0741f35b31c66f09f7d9ad808b224ef86151bb1 /shared/extra-utils/server/servers.ts | |
parent | 9293139fde7091e9badcafa9b570b83cea9a10ad (diff) | |
download | PeerTube-dd0ebb715123dfa126a82d4e4fe3a04064ae77b8.tar.gz PeerTube-dd0ebb715123dfa126a82d4e4fe3a04064ae77b8.tar.zst PeerTube-dd0ebb715123dfa126a82d4e4fe3a04064ae77b8.zip |
Introduce notifications command
Diffstat (limited to 'shared/extra-utils/server/servers.ts')
-rw-r--r-- | shared/extra-utils/server/servers.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/shared/extra-utils/server/servers.ts b/shared/extra-utils/server/servers.ts index bd3be8373..e0e49d2c4 100644 --- a/shared/extra-utils/server/servers.ts +++ b/shared/extra-utils/server/servers.ts | |||
@@ -11,13 +11,14 @@ import { CLICommand } from '../cli' | |||
11 | import { CustomPagesCommand } from '../custom-pages' | 11 | import { CustomPagesCommand } from '../custom-pages' |
12 | import { FeedCommand } from '../feeds' | 12 | import { FeedCommand } from '../feeds' |
13 | import { LogsCommand } from '../logs' | 13 | import { LogsCommand } from '../logs' |
14 | import { SQLCommand } from '../miscs' | ||
14 | import { buildServerDirectory, getFileSize, isGithubCI, root, wait } from '../miscs/miscs' | 15 | import { buildServerDirectory, getFileSize, isGithubCI, root, wait } from '../miscs/miscs' |
15 | import { AbusesCommand } from '../moderation' | 16 | import { AbusesCommand } from '../moderation' |
16 | import { OverviewsCommand } from '../overviews' | 17 | import { OverviewsCommand } from '../overviews' |
17 | import { makeGetRequest } from '../requests/requests' | 18 | import { makeGetRequest } from '../requests/requests' |
18 | import { SearchCommand } from '../search' | 19 | import { SearchCommand } from '../search' |
19 | import { SocketIOCommand } from '../socket' | 20 | import { SocketIOCommand } from '../socket' |
20 | import { AccountsCommand, BlocklistCommand, SubscriptionsCommand } from '../users' | 21 | import { AccountsCommand, BlocklistCommand, NotificationsCommand, SubscriptionsCommand } from '../users' |
21 | import { | 22 | import { |
22 | BlacklistCommand, | 23 | BlacklistCommand, |
23 | CaptionsCommand, | 24 | CaptionsCommand, |
@@ -30,7 +31,6 @@ import { | |||
30 | ServicesCommand, | 31 | ServicesCommand, |
31 | StreamingPlaylistsCommand | 32 | StreamingPlaylistsCommand |
32 | } from '../videos' | 33 | } from '../videos' |
33 | import { SQLCommand } from '../miscs' | ||
34 | import { CommentsCommand } from '../videos/comments-command' | 34 | import { CommentsCommand } from '../videos/comments-command' |
35 | import { ConfigCommand } from './config-command' | 35 | import { ConfigCommand } from './config-command' |
36 | import { ContactFormCommand } from './contact-form-command' | 36 | import { ContactFormCommand } from './contact-form-command' |
@@ -125,6 +125,7 @@ interface ServerInfo { | |||
125 | channelsCommand?: ChannelsCommand | 125 | channelsCommand?: ChannelsCommand |
126 | commentsCommand?: CommentsCommand | 126 | commentsCommand?: CommentsCommand |
127 | sqlCommand?: SQLCommand | 127 | sqlCommand?: SQLCommand |
128 | notificationsCommand?: NotificationsCommand | ||
128 | } | 129 | } |
129 | 130 | ||
130 | function parallelTests () { | 131 | function parallelTests () { |
@@ -370,6 +371,7 @@ function assignCommands (server: ServerInfo) { | |||
370 | server.channelsCommand = new ChannelsCommand(server) | 371 | server.channelsCommand = new ChannelsCommand(server) |
371 | server.commentsCommand = new CommentsCommand(server) | 372 | server.commentsCommand = new CommentsCommand(server) |
372 | server.sqlCommand = new SQLCommand(server) | 373 | server.sqlCommand = new SQLCommand(server) |
374 | server.notificationsCommand = new NotificationsCommand(server) | ||
373 | } | 375 | } |
374 | 376 | ||
375 | async function reRunServer (server: ServerInfo, configOverride?: any) { | 377 | async function reRunServer (server: ServerInfo, configOverride?: any) { |