mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 22:27:26 +01:00
fix exports
This commit is contained in:
@@ -13,7 +13,7 @@ function markNotificationAsRead (user) {
|
||||
if (index !== -1) user.notifications.splice(index, 1);
|
||||
}
|
||||
|
||||
module.exports = function openMysteryItem (user, req = {}, analytics) {
|
||||
export default function openMysteryItem (user, req = {}, analytics) {
|
||||
const mysteryItems = user.purchased.plan.mysteryItems;
|
||||
let item = mysteryItems.shift();
|
||||
|
||||
@@ -47,4 +47,4 @@ module.exports = function openMysteryItem (user, req = {}, analytics) {
|
||||
item,
|
||||
i18n.t('mysteryItemOpened', req.language),
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user