]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tools/peertube-repl.ts
Agnostic actor image storage
[github/Chocobozzz/PeerTube.git] / server / tools / peertube-repl.ts
index ecbba8b0ba2af7cf9d530c7bb6123d50ffea0f75..a38d51801afc5498804902df81d0dbb2fdeeb981 100644 (file)
@@ -1,12 +1,13 @@
 import { registerTSPaths } from '../helpers/register-ts-paths'
+registerTSPaths()
+
 import * as repl from 'repl'
 import * as path from 'path'
 import * as _ from 'lodash'
 import { uuidv1, uuidv3, uuidv4, uuidv5 } from 'uuid'
 import * as Sequelize from 'sequelize'
 import * as YoutubeDL from 'youtube-dl'
-
-import { initDatabaseModels, sequelizeTypescript } from '../initializers'
+import { initDatabaseModels, sequelizeTypescript } from '../initializers/database'
 import * as cli from '../tools/cli'
 import { logger } from '../helpers/logger'
 import * as constants from '../initializers/constants'
@@ -18,8 +19,6 @@ import * as signupUtils from '../helpers/signup'
 import * as utils from '../helpers/utils'
 import * as YoutubeDLUtils from '../helpers/youtube-dl'
 
-registerTSPaths()
-
 const start = async () => {
   await initDatabaseModels(true)
 
@@ -83,7 +82,6 @@ const start = async () => {
   }
   replServer.defineCommand('reset', resetCommand)
   replServer.defineCommand('r', resetCommand)
-
 }
 
 start()