79539663

Date: 2025-03-27 17:51:29
Score: 1
Natty:
Report link

Found that the issue was when I originally passed the data from the postgres table to the ejs file in the GET route not included above, I had only included the two columns that showed up rather than the entire table.

Changed database query from this:

db.query("SELECT task_description, color FROM tasks WHERE section='To Do'");

To this:

db.query("SELECT * FROM tasks WHERE section='To Do'");
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Jessie Moore