diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-07-05 21:36:01 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-07-05 21:36:01 +0200 |
commit | 6666aad4599a78f98f39409ec0d45391da7bd2d0 (patch) | |
tree | 2935754fb62522b085ffb41af2592b7a9a56e5ac /server/models | |
parent | 0890478c5c259bb787dc7f847e38be081df7c8e1 (diff) | |
download | PeerTube-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.js | 2 |
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 | ||
272 | function list (callback) { | 272 | function 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 | ||
276 | function removeAll (callback) { | 276 | function removeAll (callback) { |