mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +01:00
fix exports
This commit is contained in:
@@ -22,7 +22,7 @@ function markNotificationAsRead (user, cardType) {
|
||||
}
|
||||
|
||||
|
||||
module.exports = function readCard (user, req = {}) {
|
||||
export default function readCard (user, req = {}) {
|
||||
let cardType = get(req.params, 'cardType');
|
||||
|
||||
if (!cardType) {
|
||||
@@ -42,4 +42,4 @@ module.exports = function readCard (user, req = {}) {
|
||||
{ specialItems: user.items.special, cardReceived: user.flags.cardReceived },
|
||||
i18n.t('readCard', {cardType}, req.language),
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user