We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9c6a5e commit 3a15d4bCopy full SHA for 3a15d4b
1 file changed
proxy/topic_collect.js
@@ -5,7 +5,7 @@ exports.getTopicCollect = function (userId, topicId, callback) {
5
};
6
7
exports.getTopicCollectsByUserId = function (userId, callback) {
8
- TopicCollect.find({user_id: userId}, callback);
+ TopicCollect.find({user_id: userId}, '', {sort: 'create_at'}, callback);
9
10
11
exports.newAndSave = function (userId, topicId, callback) {
0 commit comments