mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-20 20:58:51 +00:00
11 lines
245 B
JavaScript
11 lines
245 B
JavaScript
import times from 'lodash/times';
|
|
import autoAllocate from '../../fns/autoAllocate';
|
|
|
|
export default function allocateNow (user) {
|
|
times(user.stats.points, () => autoAllocate(user));
|
|
user.stats.points = 0;
|
|
|
|
return [
|
|
user.stats,
|
|
];
|
|
}
|