Fix loading / album

Signed-off-by: James Ketrenos <james_git@ketrenos.com>
This commit is contained in:
James Ketr 2018-09-06 20:29:55 -07:00
parent 8e75b73db1
commit bbe87a9456
2 changed files with 1 additions and 4 deletions

View File

@ -700,6 +700,7 @@
window.fetch("api/v1/albums" + (this.path || ""), function(error, xhr) {
this.loadingAlbums = false;
if (error) {
console.log("Error loading album: " + (this.path || ""));
console.error(JSON.stringify(error, null, 2));
return;
}

View File

@ -18,10 +18,6 @@ router.get("/*", function(req, res/*, next*/) {
let url = decodeURI(req.url).replace(/\?.*$/, ""),
query = "SELECT * FROM albums WHERE path=:path";
if (url == "/") {
url = "";
}
return photoDB.sequelize.query(query, {
replacements: {
path: url