fix exports

This commit is contained in:
Matteo Pagliazzi
2019-10-01 17:53:48 +02:00
parent 4faa06f37d
commit cca5b8492b
144 changed files with 271 additions and 315 deletions

View File

@@ -1,7 +1,7 @@
import moment from 'moment';
import { MAX_LEVEL } from '../constants';
module.exports = function isFreeRebirth (user) {
export default function isFreeRebirth (user) {
let daysFromLastFreeRebirth = user.flags.lastFreeRebirth;
if (daysFromLastFreeRebirth) {
@@ -11,4 +11,4 @@ module.exports = function isFreeRebirth (user) {
}
return user.stats.lvl >= MAX_LEVEL && daysFromLastFreeRebirth > 45;
};
}