added end date to subscription model

This commit is contained in:
Fran Jurmanović
2021-06-19 14:23:44 +02:00
parent 19aa73f147
commit a17586b3a2
2 changed files with 6 additions and 0 deletions

View File

@@ -24,6 +24,8 @@ func (as *SubscriptionService) New(body *models.NewSubscriptionBody) *models.Sub
tm.CustomRange = int(customRange)
tm.Description = body.Description
tm.StartDate = body.StartDate
tm.HasEnd = body.HasEnd
tm.EndDate = body.EndDate
tm.Amount = int(amount)
if body.StartDate.IsZero() {