mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
11 lines
253 B
JavaScript
11 lines
253 B
JavaScript
import _ from 'lodash';
|
|
import autoAllocate from '../fns/autoAllocate';
|
|
|
|
module.exports = function allocateNow (user) {
|
|
_.times(user.stats.points, () => autoAllocate(user));
|
|
user.stats.points = 0;
|
|
return {
|
|
data: _.pick(user, 'stats'),
|
|
};
|
|
};
|