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) {
LEFT JOIN Addresses as a LEFT JOIN Addresses as a
ON a.id=av.AddressId ON a.id=av.AddressId
WHERE a.address='${addrss}' WHERE a.address='${addrss}'
LIMIT 30 LIMIT ${limit}
OFFSET ${offset}; OFFSET ${offset};
`); `);

Loading…
Cancel
Save