aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-07-05 21:36:01 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-07-05 21:36:01 +0200
commit6666aad4599a78f98f39409ec0d45391da7bd2d0 (patch)
tree2935754fb62522b085ffb41af2592b7a9a56e5ac /server/models
parent0890478c5c259bb787dc7f847e38be081df7c8e1 (diff)
downloadPeerTube-6666aad4599a78f98f39409ec0d45391da7bd2d0.tar.gz
PeerTube-6666aad4599a78f98f39409ec0d45391da7bd2d0.tar.zst
PeerTube-6666aad4599a78f98f39409ec0d45391da7bd2d0.zip
Fix requests ordering between pods
Diffstat (limited to 'server/models')
-rw-r--r--server/models/request.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/models/request.js b/server/models/request.js
index db6ad5409..7fdf5bd31 100644
--- a/server/models/request.js
+++ b/server/models/request.js
@@ -270,7 +270,7 @@ function updatePodsScore (goodPods, badPods) {
270} 270}
271 271
272function list (callback) { 272function list (callback) {
273 this.find({ }, { _id: 1, request: 1, to: 1 }, callback) 273 this.find({ }, { _id: 1, request: 1, to: 1 }).sort({ _id: 1 }).exec(callback)
274} 274}
275 275
276function removeAll (callback) { 276function removeAll (callback) {