mirror of
https://github.com/muety/wakapi.git
synced 2023-08-10 21:12:56 +03:00
fix: minor fixes
This commit is contained in:
parent
814e74a41e
commit
bfd2832846
@ -68,7 +68,7 @@ func (srv *MiscService) Schedule() {
|
|||||||
|
|
||||||
if srv.config.Subscriptions.Enabled && srv.config.Subscriptions.ExpiryNotifications && srv.config.App.DataRetentionMonths > 0 {
|
if srv.config.Subscriptions.Enabled && srv.config.Subscriptions.ExpiryNotifications && srv.config.App.DataRetentionMonths > 0 {
|
||||||
logbuch.Info("scheduling subscription notifications")
|
logbuch.Info("scheduling subscription notifications")
|
||||||
if _, err := srv.queueDefault.DispatchEvery(srv.ComputeOldestHeartbeats, notifyExpiringSubscriptionsEvery); err != nil {
|
if _, err := srv.queueDefault.DispatchEvery(srv.NotifyExpiringSubscription, notifyExpiringSubscriptionsEvery); err != nil {
|
||||||
config.Log().Error("failed to schedule subscription notification jobs, %v", err)
|
config.Log().Error("failed to schedule subscription notification jobs, %v", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -207,7 +207,7 @@ func (srv *MiscService) NotifyExpiringSubscription() {
|
|||||||
|
|
||||||
for _, u := range users {
|
for _, u := range users {
|
||||||
if u.HasActiveSubscription() && u.Email == "" {
|
if u.HasActiveSubscription() && u.Email == "" {
|
||||||
config.Log().Warn("invalid state: user '%s' has active subscription but no e-mail address set")
|
config.Log().Warn("invalid state: user '%s' has active subscription but no e-mail address set", u.ID)
|
||||||
}
|
}
|
||||||
|
|
||||||
// skip users without e-mail address
|
// skip users without e-mail address
|
||||||
|
@ -685,7 +685,8 @@
|
|||||||
By default, this Wakapi instance will only store historical coding activity for {{ .DataRetentionMonths }} months.
|
By default, this Wakapi instance will only store historical coding activity for {{ .DataRetentionMonths }} months.
|
||||||
However, if you want to support the project, you can opt for a paid subscription for {{ .SubscriptionPrice }} / month to get unlimited history with no restrictions.
|
However, if you want to support the project, you can opt for a paid subscription for {{ .SubscriptionPrice }} / month to get unlimited history with no restrictions.
|
||||||
You can cancel your subscription at any times!<br>
|
You can cancel your subscription at any times!<br>
|
||||||
Read more about the idea of adding paid subscriptions to Wakapi <a class="link" href="https://github.com/muety/wakapi" target="_blank" rel="noopener noreferrer">here</a>.<br>
|
Read more about the idea of adding paid subscriptions to Wakapi <a class="link" href="https://github.com/muety/wakapi" target="_blank" rel="noopener noreferrer">here</a>.
|
||||||
|
If you are having any issues related to subscriptions, please contact us at <a class="link" href="mailto:{{ .SupportContact }}" target="_blank" rel="noopener noreferrer">{{ .SupportContact }}</a>.<br>
|
||||||
</span>
|
</span>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
@ -698,9 +699,7 @@
|
|||||||
</span>
|
</span>
|
||||||
<br>
|
<br>
|
||||||
<span class="font-semibold text-gray-300">Please note</span>
|
<span class="font-semibold text-gray-300">Please note</span>
|
||||||
<span class="block text-sm text-gray-600">
|
<span class="block text-sm text-gray-600">If you just purchased a subscription, it might take a moment until it's active. Try refresh this page in a minute. Otherwise, please contact us!.</span>
|
||||||
If you just purchased a subscription, it might take a moment until it's active. Try refresh this page in a minute. Otherwise, please contact <a class="link" href="mailto:{{ .SupportContact }}">{{ .SupportContact }}</a>.
|
|
||||||
</span>
|
|
||||||
<br>
|
<br>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user