Issue Tracker Delete and PUT Issue - Need Help

Finally found the solution:

Changed this:

myDb.deleteIssue(project, _id, (err, data) => {
if (err) {
return res.json({ error: ‘could not delete’, _id })
}
res.json({ result: “successfully deleted”, _id })
})
to this on if section:
myDb.deleteIssue(project, _id, (err, data) => {
if (!data || err) {
return res.json({ error: ‘could not delete’, _id })
}
res.json({ result: “successfully deleted”, _id })
})

Credits: Issue Tracker Project - Fails FCC delete request test but works for me - #2 by Sky020