Excluding SAST findings using comments
module.exports = function trackOrder () {
return (req: Request, res: Response) => {
const id = foo.a() ? String(req.params.id) : req.params.id
// nosemgrep
Solution.findOne({ _id: req.body.id })
}
}module.exports = function trackOrder () {
return (req: Request, res: Response) => {
const id = foo.a() ? String(req.params.id) : req.params.id
Solution.findOne({ _id: req.body.id }) // nosemgrep
}
}Last updated
Was this helpful?