added API call to CRM when user registers

This commit is contained in:
2020-08-05 18:44:38 +02:00
parent f2bee18131
commit 91cba76bff
11 changed files with 140 additions and 36 deletions

View File

@@ -9,7 +9,7 @@ var router = express.Router();
// GET DISH BY ID
router.get("/", (req, res) => {
Dish.findById(req.body.dishId, (err, data) => {
Dish.findById(req.query.dishId, (err, data) => {
if (err) {
res.sendStatus(404);
} else