aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/database.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2015-12-14 21:09:25 +0100
committerChocobozzz <florian.bigard@gmail.com>2015-12-14 22:13:03 +0100
commit656ea8f70e848b03c0b668584dd533d72b376498 (patch)
treefa49512e3a3702a80d027838e5ab7486baca185a /src/database.js
parent1d7974c758d363a0037c2a7ed05a0848d3c027a4 (diff)
downloadPeerTube-656ea8f70e848b03c0b668584dd533d72b376498.tar.gz
PeerTube-656ea8f70e848b03c0b668584dd533d72b376498.tar.zst
PeerTube-656ea8f70e848b03c0b668584dd533d72b376498.zip
Create a constants module to easily modify some constants in a test
instance for example.
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)