Optimize peertube script
authorChocobozzz <me@florianbigard.com>
Tue, 28 Jan 2020 13:30:10 +0000 (14:30 +0100)
committerChocobozzz <me@florianbigard.com>
Tue, 28 Jan 2020 13:30:10 +0000 (14:30 +0100)
server/tools/cli.ts

index ba80872fb18ecfb153d9faac216a5dbb25edcdb4..15ac6c6a8c659fd85122580145bc8e9ce66f79e2 100644 (file)
@@ -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()}`