mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-15 00:12:17 +00:00
fix(amazon-payments): use lastBillingDate
This commit is contained in:
parent
12d5515879
commit
2fb25207bb
1 changed files with 2 additions and 2 deletions
|
|
@ -237,8 +237,8 @@ exports.subscribeCancel = function(req, res, next){
|
|||
cancelSubscription: function(cb){
|
||||
var data = {
|
||||
user: user,
|
||||
// Date of next bill, dateUpdated can be used because it's only updated when the user is billed
|
||||
nextBill: moment(user.purchased.plan.dateUpdated).add({days: 30}),
|
||||
// Date of next bill
|
||||
nextBill: moment(user.purchased.plan.lastBillingDate).add({days: 30}),
|
||||
paymentMethod: 'Amazon Payments'
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue