mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-14 21:27:23 +01:00
fix exports
This commit is contained in:
@@ -5,7 +5,7 @@ import {
|
||||
NotAuthorized,
|
||||
} from '../libs/errors';
|
||||
|
||||
module.exports = function releasePets (user, req = {}, analytics) {
|
||||
export default function releasePets (user, req = {}, analytics) {
|
||||
if (user.balance < 1) {
|
||||
throw new NotAuthorized(i18n.t('notEnoughGems', req.language));
|
||||
}
|
||||
@@ -53,4 +53,4 @@ module.exports = function releasePets (user, req = {}, analytics) {
|
||||
user.items.pets,
|
||||
i18n.t('petsReleased'),
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user