We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ddc042 commit 5e2eee6Copy full SHA for 5e2eee6
server/src/api/routes/routes.ts
@@ -18,7 +18,7 @@ router.get('/get_todos', async (req, res) => {
18
router.post('/create_todo', async (req, res) => {
19
const { todoContent } = req.body;
20
try {
21
- await db.query(`INSERT INTO Todolist(todo) VALES ($1)`, [todoContent]);
+ await db.query(`INSERT INTO Todolist(todo) VALUES ($1)`, [todoContent]);
22
res.status(201).send();
23
} catch (err) {
24
res.status(500).send(`There was an error while creating ${todoContent}`);
0 commit comments