전언석

FIX : when more than 2 recipes are selected

...@@ -46,7 +46,7 @@ app.post('/hook', function (req, res) { ...@@ -46,7 +46,7 @@ app.post('/hook', function (req, res) {
46 } 46 }
47 } 47 }
48 if (arr.length != 0) { 48 if (arr.length != 0) {
49 - var num = Math.floor(Math.random() * arr.length); 49 + var num = arr[Math.floor(Math.random() * arr.length)];
50 request.post( 50 request.post(
51 { 51 {
52 url: TARGET_URL, 52 url: TARGET_URL,
......