12345678910111213141516 |
- var BoosterService = require('../game/machine/BoosterService');
- var Users = require('../database/repositories/users.js');
- Users.login({
- username: 'nikatlas',
- password: 'mafalda'
- })
- .then((user) => Users.getUser(user.token))
- .then((user) => {
- console.log(user);
- //BoosterService.givePack(user.username);
- return user;
- })
- .then((user) => {
- BoosterService.getUserBoosters(user.username).then(console.log);
- });
|