aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/database.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2015-11-24 08:33:59 +0100
committerChocobozzz <florian.bigard@gmail.com>2015-11-24 08:33:59 +0100
commit3bcb78b3aff565996ee0e2aa96bce7f1bdd6d66a (patch)
treeb202172a35956b252282105f614fc9646ca64ebb /src/database.js
parent2e3b5b0db652ae4787e359aadbd4f52e473b6af7 (diff)
downloadPeerTube-3bcb78b3aff565996ee0e2aa96bce7f1bdd6d66a.tar.gz
PeerTube-3bcb78b3aff565996ee0e2aa96bce7f1bdd6d66a.tar.zst
PeerTube-3bcb78b3aff565996ee0e2aa96bce7f1bdd6d66a.zip
Make the network auto sufficient (eject bad pods with scores)
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 020bfd961..740e89fa4 100644
--- a/src/database.js
+++ b/src/database.js
@@ -24,7 +24,8 @@
24 // ----------- Pods ----------- 24 // ----------- Pods -----------
25 var podsSchema = mongoose.Schema({ 25 var podsSchema = mongoose.Schema({
26 url: String, 26 url: String,
27 publicKey: String 27 publicKey: String,
28 score: { type: Number, max: global.FRIEND_BASE_SCORE }
28 }) 29 })
29 30
30 var PodsDB = mongoose.model('pods', podsSchema) 31 var PodsDB = mongoose.model('pods', podsSchema)