v3: fix cron middleware, remove unused code from shared

This commit is contained in:
Matteo Pagliazzi
2016-04-08 11:56:51 +02:00
parent 5a259e7a25
commit 276cbc58bb
27 changed files with 49 additions and 555 deletions

View File

@@ -1,9 +1,5 @@
import _ from 'lodash';
module.exports = function(obj, path) {
return _.reduce(path.split('.'), ((function(_this) {
return function(curr, next) {
return curr != null ? curr[next] : void 0;
};
})(this)), obj);
};
// TODO remove completely
module.exports = _.get;