diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-06-28 20:10:32 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-06-28 20:10:32 +0200 |
commit | 00057e85a703713a8f0d96e01c49978be0987eb2 (patch) | |
tree | 54735435062d2ededa72448de9fcaa677cf2c79c /server/initializers/database.js | |
parent | aaf61f3810e6d57c5130af959bd2860df32775e7 (diff) | |
download | PeerTube-00057e85a703713a8f0d96e01c49978be0987eb2.tar.gz PeerTube-00057e85a703713a8f0d96e01c49978be0987eb2.tar.zst PeerTube-00057e85a703713a8f0d96e01c49978be0987eb2.zip |
Request model refractoring -> use mongoose api
Diffstat (limited to 'server/initializers/database.js')
-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') |