diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-07-01 16:03:53 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-07-01 16:03:53 +0200 |
commit | 69b0a27cbbd69ca019eb7db5f917b1dd06dc82cd (patch) | |
tree | 8659f819818a3da6419959b6b7838a7f0557c948 /server/initializers/database.js | |
parent | a3ee6fa22dee4b68fcde9cd23708b471db446e11 (diff) | |
download | PeerTube-69b0a27cbbd69ca019eb7db5f917b1dd06dc82cd.tar.gz PeerTube-69b0a27cbbd69ca019eb7db5f917b1dd06dc82cd.tar.zst PeerTube-69b0a27cbbd69ca019eb7db5f917b1dd06dc82cd.zip |
OAuth/User models 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 e97531781..4a19bc230 100644 --- a/server/initializers/database.js +++ b/server/initializers/database.js | |||
@@ -6,6 +6,9 @@ const mongoose = require('mongoose') | |||
6 | const logger = require('../helpers/logger') | 6 | const logger = require('../helpers/logger') |
7 | 7 | ||
8 | // Bootstrap models | 8 | // Bootstrap models |
9 | require('../models/user') | ||
10 | require('../models/oauth-client') | ||
11 | require('../models/oauth-token') | ||
9 | require('../models/pods') | 12 | require('../models/pods') |
10 | require('../models/video') | 13 | require('../models/video') |
11 | // Request model needs Video model | 14 | // Request model needs Video model |