diff options
author | Chocobozzz <me@florianbigard.com> | 2020-01-28 14:30:10 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-01-28 14:30:10 +0100 |
commit | 2f1756a03ccf3546f9bbcd98bc149e350d3d950a (patch) | |
tree | 501195171448a38b27962c3c821d816819409ee7 /server/tools | |
parent | 005b51b977e624b64107ccd10594920e5a6c264c (diff) | |
download | PeerTube-2f1756a03ccf3546f9bbcd98bc149e350d3d950a.tar.gz PeerTube-2f1756a03ccf3546f9bbcd98bc149e350d3d950a.tar.zst PeerTube-2f1756a03ccf3546f9bbcd98bc149e350d3d950a.zip |
Optimize peertube script
Diffstat (limited to 'server/tools')
-rw-r--r-- | server/tools/cli.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/tools/cli.ts b/server/tools/cli.ts index ba80872fb..15ac6c6a8 100644 --- a/server/tools/cli.ts +++ b/server/tools/cli.ts | |||
@@ -6,8 +6,9 @@ import { getVideoChannel } from '../../shared/extra-utils/videos/video-channels' | |||
6 | import { Command } from 'commander' | 6 | import { Command } from 'commander' |
7 | import { VideoChannel, VideoPrivacy } from '../../shared/models/videos' | 7 | import { VideoChannel, VideoPrivacy } from '../../shared/models/videos' |
8 | import { createLogger, format, transports } from 'winston' | 8 | import { createLogger, format, transports } from 'winston' |
9 | import { getAccessToken, getMyUserInformation } from '@shared/extra-utils' | 9 | import { getMyUserInformation } from '@shared/extra-utils/users/users' |
10 | import { User, UserRole } from '@shared/models' | 10 | import { User, UserRole } from '@shared/models' |
11 | import { getAccessToken } from '@shared/extra-utils/users/login' | ||
11 | 12 | ||
12 | let configName = 'PeerTube/CLI' | 13 | let configName = 'PeerTube/CLI' |
13 | if (isTestInstance()) configName += `-${getAppNumber()}` | 14 | if (isTestInstance()) configName += `-${getAppNumber()}` |