mirror of
https://github.com/PrivateCaptcha/PrivateCaptcha.git
synced 2026-04-27 16:30:30 -05:00
Fix typo
This commit is contained in:
@@ -46,7 +46,7 @@ func (plan *basePlan) Equals(productID string, priceID string) bool {
|
||||
func (p *basePlan) Name() string { return p.name }
|
||||
func (p *basePlan) ProductID() string { return p.productID }
|
||||
func (p *basePlan) PriceIDs() (string, string) { return p.priceIDMonthly, p.priceIDYearly }
|
||||
func (p *basePlan) TrialDays() int { return 14 }
|
||||
func (p *basePlan) TrialDays() int { return p.trialDays }
|
||||
func (p *basePlan) RequestsLimit() int64 { return p.requestsLimit }
|
||||
func (p *basePlan) APIRequestsPerSecond() float64 { return p.apiRequestsPerSecond }
|
||||
func (p *basePlan) PropertiesLimit() int { return 50 }
|
||||
|
||||
@@ -59,7 +59,7 @@ func CreateNewSubscriptionParams(plan billing.Plan) *dbgen.CreateSubscriptionPar
|
||||
ExternalCustomerID: db.Text(xid.New().String()),
|
||||
Status: string(billing.InternalStatusTrialing),
|
||||
Source: dbgen.SubscriptionSourceInternal,
|
||||
TrialEndsAt: db.Timestampz(tnow.Add(24 * time.Duration(plan.TrialDays()))),
|
||||
TrialEndsAt: db.Timestampz(tnow.Add(24 * time.Hour * time.Duration(plan.TrialDays()))),
|
||||
NextBilledAt: db.Timestampz(tnow.AddDate(0, 1, 0)),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user