Skip to content

Commit

Permalink
remove truncate
Browse files Browse the repository at this point in the history
  • Loading branch information
pjain1 committed Jan 3, 2025
1 parent 03c9535 commit cc6e3ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admin/server/billing.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ func (s *Server) UpdateBillingSubscription(ctx context.Context, req *adminv1.Upd
OrgName: org.Name,
FrontendURL: s.admin.URLs.Frontend(),
PlanName: plan.DisplayName,
BillingStartDate: sub.CurrentBillingCycleEndDate.Truncate(24 * time.Hour),
BillingStartDate: sub.CurrentBillingCycleEndDate,
})
} else {
err = s.admin.Email.SendPlanUpdate(&email.PlanUpdate{
Expand Down Expand Up @@ -405,7 +405,7 @@ func (s *Server) RenewBillingSubscription(ctx context.Context, req *adminv1.Rene
OrgName: org.Name,
FrontendURL: s.admin.URLs.Frontend(),
PlanName: sub.Plan.DisplayName,
BillingStartDate: sub.CurrentBillingCycleEndDate.Truncate(24 * time.Hour),
BillingStartDate: sub.CurrentBillingCycleEndDate,
})
} else {
err = s.admin.Email.SendSubscriptionRenewed(&email.SubscriptionRenewed{
Expand Down

0 comments on commit cc6e3ae

Please sign in to comment.