dashboards-stripe-charges
Advanced tools
Comparing version 0.0.2 to 0.0.3
0.0.3 / 2014-04-15 | ||
================== | ||
* starting from now, not yesterday | ||
0.0.1 - March 3, 2014 | ||
------------------------- | ||
:sparkles: |
12
index.js
@@ -105,6 +105,6 @@ | ||
ChargesDashboard.prototype.weekly = function (charges, results) { | ||
var yesterday = Dates.day.shift(new Date(), -1); | ||
var now = new Date(); | ||
var oneWeekAgo = Dates.day.shift(yesterday, -7); | ||
var oneWeekAgoCharges = this.paidCharges(charges, oneWeekAgo, yesterday); | ||
var oneWeekAgo = Dates.day.shift(now, -7); | ||
var oneWeekAgoCharges = this.paidCharges(charges, oneWeekAgo, now); | ||
results['charges 0-1 weeks ago'] = oneWeekAgoCharges.count(); | ||
@@ -127,6 +127,6 @@ results['total charged 0-1 weeks ago'] = oneWeekAgoCharges.total(); | ||
ChargesDashboard.prototype.monthly = function (charges, results) { | ||
var yesterday = Dates.day.shift(new Date(), -1); | ||
var now = new Date(); | ||
var oneMonthAgo = Dates.month.shift(yesterday, -1); | ||
var oneMonthAgoCharges = this.paidCharges(charges, oneMonthAgo, yesterday); | ||
var oneMonthAgo = Dates.month.shift(now, -1); | ||
var oneMonthAgoCharges = this.paidCharges(charges, oneMonthAgo, now); | ||
results['charges 0-1 months ago'] = oneMonthAgoCharges.count(); | ||
@@ -133,0 +133,0 @@ results['total charged 0-1 months ago'] = oneMonthAgoCharges.total(); |
{ | ||
"name": "dashboards-stripe-charges", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"lib": "./lib", | ||
@@ -22,2 +22,2 @@ "repository": "git://github.com/segmentio/dashboards-stripe-charges.git", | ||
} | ||
} | ||
} |
8363