From bfd2832846f1cf660bf91229605eb84eeef18ce5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferdinand=20M=C3=BCtsch?= Date: Sat, 31 Dec 2022 16:03:44 +0100 Subject: [PATCH] fix: minor fixes --- services/misc.go | 4 ++-- views/settings.tpl.html | 7 +++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/services/misc.go b/services/misc.go index e454f0b..a1c628d 100644 --- a/services/misc.go +++ b/services/misc.go @@ -68,7 +68,7 @@ func (srv *MiscService) Schedule() { if srv.config.Subscriptions.Enabled && srv.config.Subscriptions.ExpiryNotifications && srv.config.App.DataRetentionMonths > 0 { 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) } } @@ -207,7 +207,7 @@ func (srv *MiscService) NotifyExpiringSubscription() { for _, u := range users { 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 diff --git a/views/settings.tpl.html b/views/settings.tpl.html index 7bce4c1..bbe6dd4 100644 --- a/views/settings.tpl.html +++ b/views/settings.tpl.html @@ -685,7 +685,8 @@ 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. You can cancel your subscription at any times!
- Read more about the idea of adding paid subscriptions to Wakapi here.
+ Read more about the idea of adding paid subscriptions to Wakapi here. + If you are having any issues related to subscriptions, please contact us at {{ .SupportContact }}.

@@ -698,9 +699,7 @@
Please note - - 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 {{ .SupportContact }}. - + 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!.
{{ end }}