Permalink
Browse files

fix(beerjs): Replace getRegister to getInfo

  • Loading branch information...
lgaticaq committed Aug 7, 2016
1 parent 28e3ef0 commit 594392a24f7ce9532c4ac42718c73e1d53a46c45
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/beerjs-register.js
@@ -11,12 +11,12 @@ const chalk = require('chalk');
program
.parse(process.argv);
beerjs.getRegister().then(data => {
beerjs.getInfo().then(data => {
console.log(chalk.green(logo));
if (data !== null && data !== undefined) {
console.log(chalk.green(`Abriendo el enlace ${data} en tu navegador...`));
open(data);
if (data.registro !== '') {
console.log(chalk.green(`Abriendo el enlace ${data.registro} en tu navegador...`));
open(data.registro);
} else {
console.log(chalk.green('Lo sentimos, no hay cupos disponibles o aún no esta creado el evento'));
console.log(chalk.green('Lo sentimos, no hay evento'));
}
}).catch(() => console.log(chalk.green('Evento no encontrado')));

0 comments on commit 594392a

Please sign in to comment.