mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
10 lines
218 B
JavaScript
10 lines
218 B
JavaScript
import _ from 'lodash';
|
|
|
|
module.exports = function(user, req, cb) {
|
|
_.each(req.body, function(v, k) {
|
|
user.fns.dotSet(k, v);
|
|
return true;
|
|
});
|
|
return typeof cb === "function" ? cb(null, user) : void 0;
|
|
};
|