From 52f6f17ecb986d8b3e3fed80e4737dc782f8218f Mon Sep 17 00:00:00 2001 From: luchenqun Date: Wed, 8 Feb 2017 15:05:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=90=9C=E7=B4=A2=E5=8E=BB=E9=87=8D=E5=A4=8D?= =?UTF-8?q?=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- database/db.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/db.js b/database/db.js index e2a6572..a391f02 100644 --- a/database/db.js +++ b/database/db.js @@ -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) => {