Browse Source

Limit as variable in query

stuff
xcps 7 years ago
parent
commit
e1b89bf9ef
  1. 2
      routes/address.js

2
routes/address.js

@ -20,7 +20,7 @@ router.get('/:address/:offset*?', async function(req, res, next) { @@ -20,7 +20,7 @@ router.get('/:address/:offset*?', async function(req, res, next) {
LEFT JOIN Addresses as a
ON a.id=av.AddressId
WHERE a.address='${addrss}'
LIMIT 30
LIMIT ${limit}
OFFSET ${offset};
`);

Loading…
Cancel
Save