Closed Kuchiriel closed 7 years ago
Hello fellow coders (:
Sorry if I am submitting it to the wrong repository, since this project uses node-postgres.
This is my query
request.pg.client.query({ text: `select email, name, role, place from users order by $1 desc`, values: [request.query.sort] }, (err, result) => {
request.query.sort defaults to 'name', but doesn't work.
request.query.sort
Is this an issue or am I doing something wrong?
Thanks in advance!
Solved https://github.com/brianc/node-postgres/issues/1284
Hello fellow coders (:
Sorry if I am submitting it to the wrong repository, since this project uses node-postgres.
This is my query
request.query.sort
defaults to 'name', but doesn't work.Is this an issue or am I doing something wrong?
Thanks in advance!