diff options
-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 | ||