From e9f26ff6aecec93dafece110c6ee7cdc195fae31 Mon Sep 17 00:00:00 2001 From: Anthony Sgueglia Date: Wed, 25 Mar 2020 12:58:50 -0400 Subject: [PATCH] changed outdated lodash function --- server/routes/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/routes/index.js b/server/routes/index.js index 15ee049..1e6dfc2 100644 --- a/server/routes/index.js +++ b/server/routes/index.js @@ -13,7 +13,7 @@ router.post("/match", function(req, res, next){ var playerChoice = req.body.choice || ""; playerChoice = playerChoice.toLowerCase(); - if (!_.contains(['rock', 'paper', 'scissors'], playerChoice)) { + if (!_.includes(['rock', 'paper', 'scissors'], playerChoice)) { status = 400; body = { message: "'choice' param must be rock, paper, or scissors" } return res.status(status).json(body);