diff options
Diffstat (limited to 'server/initializers')
-rw-r--r-- | server/initializers/database.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/server/initializers/database.js b/server/initializers/database.js index 5932a978b..d0d969663 100644 --- a/server/initializers/database.js +++ b/server/initializers/database.js | |||
@@ -7,6 +7,8 @@ const logger = require('../helpers/logger') | |||
7 | 7 | ||
8 | // Bootstrap models | 8 | // Bootstrap models |
9 | require('../models/video') | 9 | require('../models/video') |
10 | // Request model needs Video model | ||
11 | require('../models/request') | ||
10 | 12 | ||
11 | const dbname = 'peertube' + config.get('database.suffix') | 13 | const dbname = 'peertube' + config.get('database.suffix') |
12 | const host = config.get('database.host') | 14 | const host = config.get('database.host') |