mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 14:17:22 +01:00
fix exports
This commit is contained in:
@@ -12,7 +12,7 @@ import {
|
||||
// @TODO: 'special' type throws NotAuthorized error
|
||||
const ACCEPTEDTYPES = ['eggs', 'hatchingPotions', 'food'];
|
||||
|
||||
module.exports = function sell (user, req = {}) {
|
||||
export default function sell (user, req = {}) {
|
||||
let key = get(req.params, 'key');
|
||||
let type = get(req.params, 'type');
|
||||
let amount = get(req.query, 'amount', 1);
|
||||
@@ -55,4 +55,4 @@ module.exports = function sell (user, req = {}) {
|
||||
return [
|
||||
pick(user, splitWhitespace('stats items')),
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user