diff --git a/Server/src/routes/api/email.js b/Server/src/routes/api/email.js index aaa2ebc..b6546d2 100644 --- a/Server/src/routes/api/email.js +++ b/Server/src/routes/api/email.js @@ -20,8 +20,8 @@ router.get("/",function(req,res){ router.post("/", function(req,res){ console.log(req.body); - if (!req.body.name || !req.body.email || !req.body.phone || !req.body.message){ - res.status(400).json({"status":400,"message":"name, email, phone, and message are required fields in the body"}); + if (!req.body.name || !req.body.email || !req.body.message){ + res.status(400).json({"status":400,"message":"name, email, and message are required fields in the body"}); return; } //This is the honeypot field diff --git a/git-post-receive b/git-post-receive index 2460c1d..f9aba5f 100644 --- a/git-post-receive +++ b/git-post-receive @@ -1,7 +1,7 @@ #!/bin/sh BUILD_ANGULAR_ARG=$1 -BUILD_ANGULAR=true +BUILD_ANGULAR=false if [ "$BUILD_ANGULAR_ARG" = -ng ]; then BUILD_ANGULAR=true fi