搜索去重复的

This commit is contained in:
luchenqun 2017-02-08 15:05:52 +08:00
parent 4639538a5a
commit 52f6f17ecb
1 changed files with 1 additions and 1 deletions

View File

@ -459,7 +459,7 @@ db.getBookmarksSearch = function(params) {
params.currentPage = params.currentPage || 1;
params.perPageItems = params.perPageItems || 20;
sql += " ORDER BY click_count DESC, created_at DESC";
sql += " GROUP BY url ORDER BY click_count DESC, created_at DESC";
console.log(sql);
return new Promise(function(resolve, reject) {
client.query(sql, (err, result) => {