diff --git a/src/websrv.js b/src/websrv.js index c7903e1..4dfefca 100644 --- a/src/websrv.js +++ b/src/websrv.js @@ -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');