If you use template literals for your queries then they can be on multiple lines. I would also recommend formatting queries with all caps for postgres functionality - it's the industry standard and makes reading queries a bunch easier:
connect.query(
'select tasks.id,tasks.description,tasks.priority,tasks.time_started, tasks.time_finished, tasks.user_id, users.name from tasks inner join users on users.id=tasks.user_id where tasks.user_id = $1',
[query.user],
(err, res) => {
...
vs
connect.query(`
SELECT T.id, T.description, T.priority, T.time_started, T.time_finished,
T.user_id, U.name
FROM tasks T INNER JOIN users U ON U.id=T.user_id
WHERE T.user_id = $1`,
[query.user],
(err, res) => {
...
If you use template literals for your queries then they can be on multiple lines. I would also recommend formatting queries with all caps for postgres functionality - it's the industry standard and makes reading queries a bunch easier:
vs