mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-14 05:07:22 +01:00
fix exports
This commit is contained in:
@@ -15,7 +15,7 @@ import content from '../content/index';
|
||||
|
||||
// If item is already purchased -> equip it
|
||||
// Otherwise unlock it
|
||||
module.exports = function unlock (user, req = {}, analytics) {
|
||||
export default function unlock (user, req = {}, analytics) {
|
||||
let path = get(req.query, 'path');
|
||||
|
||||
if (!path) {
|
||||
@@ -138,4 +138,4 @@ module.exports = function unlock (user, req = {}, analytics) {
|
||||
if (!alreadyOwns) response.push(i18n.t('unlocked', req.language));
|
||||
|
||||
return response;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user