Merge branch 'shared-code-random-drop' of https://github.com/piousbox/habitrpg into piousbox-shared-code-random-drop2

This commit is contained in:
Matteo Pagliazzi
2016-04-19 12:07:18 +02:00
8 changed files with 271 additions and 58 deletions

View File

@@ -6,6 +6,7 @@ import {
NotAuthorized,
} from '../libs/errors';
// TODO move to server code
module.exports = function addPushDevice (user, req = {}) {
let regId = _.get(req, 'body.regId');
if (!regId) throw new BadRequest(i18n.t('regIdRequired', req.language));