1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2025-05-02 20:37:08 +01:00

fix: add missing require()

This commit is contained in:
hacksalot
2018-02-09 00:06:07 -05:00
parent 8648befcdd
commit 20815d7eff
2 changed files with 6 additions and 3 deletions

View File

@ -1,10 +1,12 @@
(function() {
var FluentDate, _;
var FluentDate, _, lo;
FluentDate = require('../core/fluent-date');
_ = require('underscore');
lo = require('lodash');
module.exports = {
/**
@ -17,7 +19,7 @@
run: function(rez, collKey, startKey, endKey, unit) {
var firstDate, hist, lastDate, new_e;
unit = unit || 'years';
hist = __.get(rez, collKey);
hist = lo.get(rez, collKey);
if (!hist || !hist.length) {
return 0;
}