mirror of
https://github.com/usatiuk/ustk-todolist.git
synced 2025-10-28 15:47:48 +01:00
fix lists not being shown
This commit is contained in:
@@ -15,7 +15,7 @@ router.get(
|
||||
const lists = await TodoList.find({ user: req.user.id })
|
||||
.populate('todos')
|
||||
.exec();
|
||||
res.json({ success: true, data: lists.map(list => { list.todos.reverse(); list.toJson() }) });
|
||||
res.json({ success: true, data: lists.map(list => { list.todos.reverse(); return list.toJson() }) });
|
||||
}),
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user