mirror of
https://github.com/IonicaBizau/git-stats.git
synced 2024-12-22 13:22:11 +01:00
Fixed the merging
This commit is contained in:
parent
03190c52d0
commit
f13b9395f8
1 changed files with 3 additions and 5 deletions
|
@ -155,11 +155,9 @@ GitStats.iterateDays = function (data, callback) {
|
|||
}
|
||||
|
||||
// Merge the defaults
|
||||
data = Ul.merge(data, {
|
||||
end: Moment()
|
||||
, start: Moment().subtract(1, "years")
|
||||
, format: DATE_FORMAT
|
||||
});
|
||||
data.end = data.end || Moment();
|
||||
data.start = data.start || Moment().subtract(1, "years");
|
||||
data.format = data.format || DATE_FORMAT;
|
||||
|
||||
var start = data.start
|
||||
, end = data.end
|
||||
|
|
Loading…
Reference in a new issue