reymesson1 / septimoejercicio

1 stars 0 forks source link

Remove Master issue #62

Closed reymesson1 closed 5 years ago

reymesson1 commented 5 years ago

Should change the variable called value instead of index on App.js on the Class Master on the method onDeleteMaster.

reymesson1 commented 5 years ago

exports.removeMaster = async(req,res)=>{

var master = await Master.remove({"id":req.body.id},function(err,master){ if(!err){ console.log("Master removed "); } })

res.send('removed'); }