From 89ef3de3131cb67bbf5f99a60ce51b4b54b229ce Mon Sep 17 00:00:00 2001 From: Flummi Date: Fri, 13 Jan 2017 23:04:29 +0100 Subject: [PATCH] *timestamp --- src/websrv.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/websrv.js b/src/websrv.js index 4e7f941..444f9e1 100644 --- a/src/websrv.js +++ b/src/websrv.js @@ -244,7 +244,7 @@ function Websrv(tlib) { else if(url[2] == "latest") { lib.sql.query("select max(stamp) from `f0ck`.`items` limit 1", (err, rows) => { res.writeHead(200, { 'Content-Type': 'application/json' }); - res.end(JSON.stringify({latest: rows[0].id}), 'utf-8'); + res.end(JSON.stringify({latest: rows[0].stamp}), 'utf-8'); }); } else if(url[2] == "p" && Number.isInteger(parseInt(url[3]))) { // pagination