mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
fix(v3): cleanup of shared code
This commit is contained in:
@@ -3,6 +3,7 @@ import {
|
||||
NotAuthorized,
|
||||
} from '../libs/errors';
|
||||
import i18n from '../i18n';
|
||||
import updateStats from '../fns/updateStats';
|
||||
|
||||
const MAX_TASK_VALUE = 21.27;
|
||||
const MIN_TASK_VALUE = -47.27;
|
||||
@@ -254,6 +255,6 @@ module.exports = function scoreTask (options = {}, req = {}) {
|
||||
}
|
||||
}
|
||||
|
||||
user.fns.updateStats(stats, req);
|
||||
updateStats(user, stats, req);
|
||||
return delta;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user