fix item create
This commit is contained in:
@@ -44,6 +44,8 @@ router.post('/item', requiredValidate('todoId', 'title'), async (req, res) => {
|
||||
|
||||
list.items.push(item)
|
||||
await list.save()
|
||||
|
||||
res.send(getAnswer(null, item))
|
||||
})
|
||||
|
||||
router.get('/:todoId', async (req, res) => {
|
||||
|
||||
Reference in New Issue
Block a user