This commit is contained in:
Flummi 2018-05-26 16:03:10 +02:00
parent 8f709d197e
commit 45a35eb5f9

View File

@ -329,7 +329,7 @@ function Websrv(tlib) {
if(query.length === 0)
return res.end('type not found', 'utf-8');
lib.sql.query("select `id`, `mime`, `size`, `username`, `userchannel`, `usernetwork`, `stamp` from `f0ck`.`items` " + query, (err, rows, fields) => {
lib.sql.query("select `id`, `mime`, `size`, `username`, `userchannel`, `usernetwork`, `stamp`, `dest` from `f0ck`.`items` " + query, (err, rows, fields) => {
if(err || rows.length === 0)
return res.end('no results', 'utf-8');
res.end(JSON.stringify( rows[0] ), 'utf-8');