mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
fix(subs): record creation for gifts
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user