mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-04-15 04:06:22 +00:00
9 lines
218 B
JavaScript
9 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;
|
|
};
|