From: Chocobozzz Date: Tue, 28 Jan 2020 13:30:10 +0000 (+0100) Subject: Optimize peertube script X-Git-Tag: v2.2.0-rc.1~583 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2f1756a03ccf3546f9bbcd98bc149e350d3d950a;p=oweals%2Fpeertube.git Optimize peertube script --- 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' import { Command } from 'commander' import { VideoChannel, VideoPrivacy } from '../../shared/models/videos' import { createLogger, format, transports } from 'winston' -import { getAccessToken, getMyUserInformation } from '@shared/extra-utils' +import { getMyUserInformation } from '@shared/extra-utils/users/users' import { User, UserRole } from '@shared/models' +import { getAccessToken } from '@shared/extra-utils/users/login' let configName = 'PeerTube/CLI' if (isTestInstance()) configName += `-${getAppNumber()}`