diff --git a/server/routes/photos.js b/server/routes/photos.js index 890e8a4..2954b39 100755 --- a/server/routes/photos.js +++ b/server/routes/photos.js @@ -40,17 +40,14 @@ router.get("/memories/*", function(req, res/*, next*/) { if (id == -1) { index = ""; } else { - if (id != -1) { - index = " AND ((taken=DATE(:cursor) AND id<"+id+ ") OR taken