diff options
author | Chocobozzz <me@florianbigard.com> | 2017-12-12 17:53:50 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2017-12-13 16:50:33 +0100 |
commit | 3fd3ab2d34d512b160a5e6084d7609be7b4f4452 (patch) | |
tree | e5ca358287fca6ecacce83defcf23af1e8e9f419 /server.ts | |
parent | c893d4514e6ecbf282c7985fe5f82b8acd8a1137 (diff) | |
download | PeerTube-3fd3ab2d34d512b160a5e6084d7609be7b4f4452.tar.gz PeerTube-3fd3ab2d34d512b160a5e6084d7609be7b4f4452.tar.zst PeerTube-3fd3ab2d34d512b160a5e6084d7609be7b4f4452.zip |
Move models to typescript-sequelize
Diffstat (limited to 'server.ts')
-rw-r--r-- | server.ts | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -41,8 +41,8 @@ if (errorMessage !== null) { | |||
41 | // Do not use barrels because we don't want to load all modules here (we need to initialize database first) | 41 | // Do not use barrels because we don't want to load all modules here (we need to initialize database first) |
42 | import { logger } from './server/helpers/logger' | 42 | import { logger } from './server/helpers/logger' |
43 | // Initialize database and models | 43 | // Initialize database and models |
44 | import { database as db } from './server/initializers/database' | 44 | import { initDatabase } from './server/initializers/database' |
45 | db.init(false).then(() => onDatabaseInitDone()) | 45 | initDatabase(false).then(() => onDatabaseInitDone()) |
46 | 46 | ||
47 | // ----------- PeerTube modules ----------- | 47 | // ----------- PeerTube modules ----------- |
48 | import { migrate, installApplication } from './server/initializers' | 48 | import { migrate, installApplication } from './server/initializers' |