diff options
author | Chocobozzz <me@florianbigard.com> | 2020-04-09 08:39:44 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-04-09 08:39:44 +0200 |
commit | 00c228363f0db1d181d546eebb0c7ec3eb487976 (patch) | |
tree | 8aaa35ba6378738b8f88e637f9c9854dc2f1fc25 /server/tools/peertube-repl.ts | |
parent | 6ccdf9d53e4d68bcdf49bb7098c382d059988c4e (diff) | |
download | PeerTube-00c228363f0db1d181d546eebb0c7ec3eb487976.tar.gz PeerTube-00c228363f0db1d181d546eebb0c7ec3eb487976.tar.zst PeerTube-00c228363f0db1d181d546eebb0c7ec3eb487976.zip |
Fix repl script
Diffstat (limited to 'server/tools/peertube-repl.ts')
-rw-r--r-- | server/tools/peertube-repl.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/server/tools/peertube-repl.ts b/server/tools/peertube-repl.ts index ecbba8b0b..9ddb037c7 100644 --- a/server/tools/peertube-repl.ts +++ b/server/tools/peertube-repl.ts | |||
@@ -1,11 +1,12 @@ | |||
1 | import { registerTSPaths } from '../helpers/register-ts-paths' | 1 | import { registerTSPaths } from '../helpers/register-ts-paths' |
2 | registerTSPaths() | ||
3 | |||
2 | import * as repl from 'repl' | 4 | import * as repl from 'repl' |
3 | import * as path from 'path' | 5 | import * as path from 'path' |
4 | import * as _ from 'lodash' | 6 | import * as _ from 'lodash' |
5 | import { uuidv1, uuidv3, uuidv4, uuidv5 } from 'uuid' | 7 | import { uuidv1, uuidv3, uuidv4, uuidv5 } from 'uuid' |
6 | import * as Sequelize from 'sequelize' | 8 | import * as Sequelize from 'sequelize' |
7 | import * as YoutubeDL from 'youtube-dl' | 9 | import * as YoutubeDL from 'youtube-dl' |
8 | |||
9 | import { initDatabaseModels, sequelizeTypescript } from '../initializers' | 10 | import { initDatabaseModels, sequelizeTypescript } from '../initializers' |
10 | import * as cli from '../tools/cli' | 11 | import * as cli from '../tools/cli' |
11 | import { logger } from '../helpers/logger' | 12 | import { logger } from '../helpers/logger' |
@@ -18,8 +19,6 @@ import * as signupUtils from '../helpers/signup' | |||
18 | import * as utils from '../helpers/utils' | 19 | import * as utils from '../helpers/utils' |
19 | import * as YoutubeDLUtils from '../helpers/youtube-dl' | 20 | import * as YoutubeDLUtils from '../helpers/youtube-dl' |
20 | 21 | ||
21 | registerTSPaths() | ||
22 | |||
23 | const start = async () => { | 22 | const start = async () => { |
24 | await initDatabaseModels(true) | 23 | await initDatabaseModels(true) |
25 | 24 | ||