diff --git a/src/api/endpoints/drive/stream.js b/src/api/endpoints/drive/stream.js index 50c60041e8..0534b884cd 100644 --- a/src/api/endpoints/drive/stream.js +++ b/src/api/endpoints/drive/stream.js @@ -50,13 +50,13 @@ module.exports = (params, user) => // Construct query const sort = { - created_at: -1 + _id: -1 }; const query = { user_id: user._id }; if (since !== null) { - sort.created_at = 1; + sort._id = 1; query._id = { $gt: new mongo.ObjectID(since) };