aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-04-09 08:39:44 +0200
committerChocobozzz <me@florianbigard.com>2020-04-09 08:39:44 +0200
commit00c228363f0db1d181d546eebb0c7ec3eb487976 (patch)
tree8aaa35ba6378738b8f88e637f9c9854dc2f1fc25 /server
parent6ccdf9d53e4d68bcdf49bb7098c382d059988c4e (diff)
downloadPeerTube-00c228363f0db1d181d546eebb0c7ec3eb487976.tar.gz
PeerTube-00c228363f0db1d181d546eebb0c7ec3eb487976.tar.zst
PeerTube-00c228363f0db1d181d546eebb0c7ec3eb487976.zip
Fix repl script
Diffstat (limited to 'server')
-rw-r--r--server/tools/peertube-repl.ts5
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 @@
1import { registerTSPaths } from '../helpers/register-ts-paths' 1import { registerTSPaths } from '../helpers/register-ts-paths'
2registerTSPaths()
3
2import * as repl from 'repl' 4import * as repl from 'repl'
3import * as path from 'path' 5import * as path from 'path'
4import * as _ from 'lodash' 6import * as _ from 'lodash'
5import { uuidv1, uuidv3, uuidv4, uuidv5 } from 'uuid' 7import { uuidv1, uuidv3, uuidv4, uuidv5 } from 'uuid'
6import * as Sequelize from 'sequelize' 8import * as Sequelize from 'sequelize'
7import * as YoutubeDL from 'youtube-dl' 9import * as YoutubeDL from 'youtube-dl'
8
9import { initDatabaseModels, sequelizeTypescript } from '../initializers' 10import { initDatabaseModels, sequelizeTypescript } from '../initializers'
10import * as cli from '../tools/cli' 11import * as cli from '../tools/cli'
11import { logger } from '../helpers/logger' 12import { logger } from '../helpers/logger'
@@ -18,8 +19,6 @@ import * as signupUtils from '../helpers/signup'
18import * as utils from '../helpers/utils' 19import * as utils from '../helpers/utils'
19import * as YoutubeDLUtils from '../helpers/youtube-dl' 20import * as YoutubeDLUtils from '../helpers/youtube-dl'
20 21
21registerTSPaths()
22
23const start = async () => { 22const start = async () => {
24 await initDatabaseModels(true) 23 await initDatabaseModels(true)
25 24