]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - src/database.js
Finalise the join in a network and add the ability to quit it
[github/Chocobozzz/PeerTube.git] / src / database.js
index 514a622dc823e224a43adfe18506a0f72a35df5f..e03176b31e9a0f6fc16be6457b060c94a5985ac1 100644 (file)
@@ -4,6 +4,7 @@
   var config = require('config')
   var mongoose = require('mongoose')
 
+  var constants = require('./constants')
   var logger = require('./logger')
 
   var dbname = 'peertube' + config.get('database.suffix')
@@ -25,7 +26,7 @@
   var podsSchema = mongoose.Schema({
     url: String,
     publicKey: String,
-    score: { type: Number, max: global.FRIEND_BASE_SCORE }
+    score: { type: Number, max: constants.FRIEND_BASE_SCORE }
   })
 
   var PodsDB = mongoose.model('pods', podsSchema)