From cb62f6cdb44a03f3bdd045101dba81cc4ea5e00c Mon Sep 17 00:00:00 2001 From: luchenqun Date: Tue, 21 Feb 2017 12:00:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=B8=80=E4=B8=8B=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E5=BF=AB=E7=85=A7=E7=9A=84=E6=95=B0=E6=8D=AE=E5=BA=93?= =?UTF-8?q?=E8=AF=AD=E5=8F=A5?= 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 7ff4e48..a606b3d 100644 --- a/database/db.js +++ b/database/db.js @@ -563,7 +563,7 @@ db.getTagsBookmarks = function(bookmark_ids) { db.getBookmarkWaitSnap = function(today) { var todayNotSnap = today + 31; - var sql = "SELECT id, url, snap_state FROM `bookmarks` WHERE `snap_state`>=0 AND `snap_state` <= 64 AND snap_state != " + todayNotSnap + " ORDER BY last_click DESC LIMIT 0, 1"; + var sql = "SELECT id, url, snap_state FROM `bookmarks` WHERE `snap_state`>=0 AND `snap_state` <= 64 AND snap_state != " + todayNotSnap + " ORDER BY created_at DESC LIMIT 0, 1"; return new Promise(function(resolve, reject) { client.query(sql, (err, result) => { if (err) {