mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 14:17:22 +01:00
fix exports
This commit is contained in:
@@ -4,7 +4,7 @@ import {
|
||||
NotAuthorized,
|
||||
} from '../libs/errors';
|
||||
|
||||
module.exports = function reroll (user, tasks = [], req = {}, analytics) {
|
||||
export default function reroll (user, tasks = [], req = {}, analytics) {
|
||||
if (user.balance < 1) {
|
||||
throw new NotAuthorized(i18n.t('notEnoughGems', req.language));
|
||||
}
|
||||
@@ -34,4 +34,4 @@ module.exports = function reroll (user, tasks = [], req = {}, analytics) {
|
||||
{user, tasks},
|
||||
i18n.t('fortifyComplete'),
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user