diff --git a/src/main.js b/src/main.js index 70ded86..46abd96 100644 --- a/src/main.js +++ b/src/main.js @@ -218,7 +218,7 @@ http.createServer((req, res) => { }); } else if(Number.isInteger(parseInt(url))) { // itempage - sql.query("select * from `f0ck`.`items` where `id` = ? limit 1; select `id` from `f0ck`.`items` where `id` = (select min(`id`) from `f0ck`.`items` where `id` > ?); select `id` from `f0ck`.`items` where `id` = (select max(`id`) from `f0ck`.`items` where `id` < ?);", [url, url, url], (err, rows, fields) => { + sql.query("select * from `f0ck`.`items` where `id` = ? limit 1; select `id` from `f0ck`.`items` where `id` = (select min(`id`) from `f0ck`.`items` where `id` > ?); select `id` from `f0ck`.`items` where `id` = (select max(`id`) from `f0ck`.`items` where `id` < ?)", [url, url, url], (err, rows, fields) => { var tpl = swig.compile(templates.item); var data = { id: '',