diff --git a/server/routes/photos.js b/server/routes/photos.js index 23c17c3..7fbe86b 100755 --- a/server/routes/photos.js +++ b/server/routes/photos.js @@ -55,7 +55,7 @@ router.get("/*", function(req, res/*, next*/) { } } - let query = "SELECT * FROM photos WHERE path LIKE :path " + index + " ORDER BY taken " + order + ",id " + order;// + " LIMIT " + (limit * 2 + 1); + let query = "SELECT * FROM photos WHERE path LIKE :path " + index + " ORDER BY taken " + order + ",id " + order + " LIMIT 1000";// + " LIMIT " + (limit * 2 + 1); return photoDB.sequelize.query(query, { replacements: { cursor: cursor,