removes ; dunno if it fixes the problem
This commit is contained in:
parent
cfcf1103d1
commit
362ed451be
|
@ -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: '',
|
||||
|
|
Loading…
Reference in New Issue
Block a user