diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-06-24 17:42:51 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-06-24 17:42:51 +0200 |
commit | aaf61f3810e6d57c5130af959bd2860df32775e7 (patch) | |
tree | 3871b20359aa56995a4b8974ae5cb6b911dd73f5 /server/initializers/database.js | |
parent | 07d932038745e773359fa87bac6be70523f593ee (diff) | |
download | PeerTube-aaf61f3810e6d57c5130af959bd2860df32775e7.tar.gz PeerTube-aaf61f3810e6d57c5130af959bd2860df32775e7.tar.zst PeerTube-aaf61f3810e6d57c5130af959bd2860df32775e7.zip |
Video model refractoring -> use mongoose api
Diffstat (limited to 'server/initializers/database.js')
-rw-r--r-- | server/initializers/database.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/initializers/database.js b/server/initializers/database.js index 830cc7dd8..5932a978b 100644 --- a/server/initializers/database.js +++ b/server/initializers/database.js | |||
@@ -5,6 +5,9 @@ const mongoose = require('mongoose') | |||
5 | 5 | ||
6 | const logger = require('../helpers/logger') | 6 | const logger = require('../helpers/logger') |
7 | 7 | ||
8 | // Bootstrap models | ||
9 | require('../models/video') | ||
10 | |||
8 | const dbname = 'peertube' + config.get('database.suffix') | 11 | const dbname = 'peertube' + config.get('database.suffix') |
9 | const host = config.get('database.host') | 12 | const host = config.get('database.host') |
10 | const port = config.get('database.port') | 13 | const port = config.get('database.port') |