diff options
author | Chocobozzz <me@florianbigard.com> | 2020-08-24 14:11:15 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-08-24 14:11:15 +0200 |
commit | 74055dc882e484b217f398917a3cc24bf2ea8cbe (patch) | |
tree | 905fa5d78258d699c3dac4b22769fd209bafd8bc /server.ts | |
parent | 8b6f0fd53d12faf54a58602a8bcfab05e8b5947b (diff) | |
download | PeerTube-74055dc882e484b217f398917a3cc24bf2ea8cbe.tar.gz PeerTube-74055dc882e484b217f398917a3cc24bf2ea8cbe.tar.zst PeerTube-74055dc882e484b217f398917a3cc24bf2ea8cbe.zip |
Fix tests
Diffstat (limited to 'server.ts')
-rw-r--r-- | server.ts | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -70,7 +70,9 @@ if (CONFIG.CSP.ENABLED) { | |||
70 | // ----------- Database ----------- | 70 | // ----------- Database ----------- |
71 | 71 | ||
72 | // Initialize database and models | 72 | // Initialize database and models |
73 | import { initDatabaseModels } from './server/initializers/database' | 73 | import { initDatabaseModels, checkDatabaseConnectionOrDie } from './server/initializers/database' |
74 | checkDatabaseConnectionOrDie() | ||
75 | |||
74 | import { migrate } from './server/initializers/migrator' | 76 | import { migrate } from './server/initializers/migrator' |
75 | migrate() | 77 | migrate() |
76 | .then(() => initDatabaseModels(false)) | 78 | .then(() => initDatabaseModels(false)) |