fix some tests

This commit is contained in:
Matteo Pagliazzi
2015-12-19 18:07:39 +01:00
parent ba22575e1a
commit 3e87c8d3e9
6 changed files with 101 additions and 106 deletions
+2 -1
View File
@@ -8,7 +8,7 @@ import {
BadRequest,
NotAuthorized,
} from '../../libs/api-v3/errors';
import firebase from '../../libs/api-v3/firebase';
import * as firebase from '../../libs/api-v3/firebase';
let api = {};
@@ -31,6 +31,7 @@ api.createGroup = {
group.leader = user._id;
if (group.type === 'guild') {
console.log(user._id, user.balance)
if (user.balance < 1) return next(new NotAuthorized(res.t('messageInsufficientGems')));
group.balance = 1;