Skip to content

Commit 07145bb

Browse files
await fix
Signed-off-by: Arnav Gupta <[email protected]>
1 parent abe666f commit 07145bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ app.get('/addtask', async (req, res) => {
77
res.redirect('/tasks')
88
})
99

10-
app.get('/tasks', (req, res) => {
10+
app.get('/tasks', async (req, res) => {
1111
const tasks = await Tasks.findAll()
1212
res.send(tasks.map(t => ` task = ${t.name} \n`))
1313
})

0 commit comments

Comments
 (0)