mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
Merge branch 'shared-code-random-drop' of https://github.com/piousbox/habitrpg into piousbox-shared-code-random-drop2
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user