diff --git a/api/helpers/enviar-whatsapp.js b/api/helpers/enviar-whatsapp.js index bf9cfb8acd2ad992564ddc00e708de7a999e0486..d8b4953be6ff513115fceb7c0732bbe0837093cd 100755 --- a/api/helpers/enviar-whatsapp.js +++ b/api/helpers/enviar-whatsapp.js @@ -36,11 +36,12 @@ module.exports = { fn: async function (inputs) { var data = querystring.stringify({ texto : inputs.texto, - telefono : inputs.telefono + telefono : inputs.numero }); const response = await axios.get('http://190.105.227.247/~umbot/api-whatsapp/?'+data) - .then((response) => { + .then((response) => { + sails.log(response); return response; }) .catch((err) => { diff --git a/views/layouts/layout.ejs b/views/layouts/layout.ejs index e8c5a231af03104661c2a394ea6661cf1e2e9c1f..9588d2b66136ff48451ab1f8a36c7b4bbad5d7e4 100755 --- a/views/layouts/layout.ejs +++ b/views/layouts/layout.ejs @@ -32,7 +32,7 @@ --> <!--STYLES--> - <link rel="stylesheet" href="/min/production.min.css"> + <link rel="stylesheet" href="/styles/importer.css"> <!--STYLES END--> </head> @@ -106,7 +106,7 @@ --> <!--SCRIPTS--> - <script src="/min/production.min.js"></script> + <script src="/dependencies/sails.io.js"></script> <!--SCRIPTS END--> </body> </html>