aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/database.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/database.js')
-rw-r--r--src/database.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/database.js b/src/database.js
index 514a622dc..e03176b31 100644
--- a/src/database.js
+++ b/src/database.js
@@ -4,6 +4,7 @@
4 var config = require('config') 4 var config = require('config')
5 var mongoose = require('mongoose') 5 var mongoose = require('mongoose')
6 6
7 var constants = require('./constants')
7 var logger = require('./logger') 8 var logger = require('./logger')
8 9
9 var dbname = 'peertube' + config.get('database.suffix') 10 var dbname = 'peertube' + config.get('database.suffix')
@@ -25,7 +26,7 @@
25 var podsSchema = mongoose.Schema({ 26 var podsSchema = mongoose.Schema({
26 url: String, 27 url: String,
27 publicKey: String, 28 publicKey: String,
28 score: { type: Number, max: global.FRIEND_BASE_SCORE } 29 score: { type: Number, max: constants.FRIEND_BASE_SCORE }
29 }) 30 })
30 31
31 var PodsDB = mongoose.model('pods', podsSchema) 32 var PodsDB = mongoose.model('pods', podsSchema)