fix(subs): record creation for gifts

This commit is contained in:
Sabe Jones
2016-12-09 19:52:17 +00:00
parent cd545e08d5
commit f8751b002c
2 changed files with 9 additions and 0 deletions

View File

@@ -80,6 +80,7 @@ api.createSubscription = async function createSubscription (data) {
plan.dateTerminated = moment(plan.dateTerminated).add({months}).toDate();
} else {
plan.dateTerminated = moment().add({months}).toDate();
plan.dateCreated = today;
}
}