Skip to content

Commit 3a15d4b

Browse files
committed
topic collect sort by create_at
1 parent f9c6a5e commit 3a15d4b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

proxy/topic_collect.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ exports.getTopicCollect = function (userId, topicId, callback) {
55
};
66

77
exports.getTopicCollectsByUserId = function (userId, callback) {
8-
TopicCollect.find({user_id: userId}, callback);
8+
TopicCollect.find({user_id: userId}, '', {sort: 'create_at'}, callback);
99
};
1010

1111
exports.newAndSave = function (userId, topicId, callback) {

0 commit comments

Comments
 (0)