summaryrefslogtreecommitdiff
path: root/internal
diff options
from:
to:
context:
space:
mode:
authorGravatar SayaAndy <saya.andy@posteo.com> 2025-10-25 19:41:49 +0700
committerGravatar SayaAndy <saya.andy@posteo.com> 2025-10-25 19:41:49 +0700
commit634fa487aa91c1a12af0ddb0cb0744c27df12c04 (patch)
treec2cd8de15a4005505bfe450c64e6e88ef1bd1f32 /internal
parent249f73a7eff43994ed91fb1e1bef8edf5ac6c86a (diff)
downloadweb-634fa487aa91c1a12af0ddb0cb0744c27df12c04.tar.gz
web-634fa487aa91c1a12af0ddb0cb0744c27df12c04.zip
feat: enable WAL journal mode for db
fix: green colors on unsubscribe page feat: properly shutdown blog trigger scheduler
Diffstat (limited to 'internal')
-rw-r--r--internal/blogtrigger/blogtrigger.go4
-rw-r--r--internal/router/lang-user-unsubscribe.go2
2 files changed, 5 insertions, 1 deletions
diff --git a/internal/blogtrigger/blogtrigger.go b/internal/blogtrigger/blogtrigger.go
index 9b016e8..c5b3097 100644
--- a/internal/blogtrigger/blogtrigger.go
+++ b/internal/blogtrigger/blogtrigger.go
@@ -49,6 +49,10 @@ func NewBlogTriggerScheduler(b2Client *b2.B2Client, availableLanguages []config.
return bts, nil
}
+func (bts *BlogTriggerScheduler) Close() error {
+ return bts.s.Shutdown()
+}
+
func (bts *BlogTriggerScheduler) scan() (newPages []*b2.BlogPage, err error) {
newPages = make([]*b2.BlogPage, 0)
for lang := range bts.knownBlogPages {
diff --git a/internal/router/lang-user-unsubscribe.go b/internal/router/lang-user-unsubscribe.go
index a6ca89f..81d1bfb 100644
--- a/internal/router/lang-user-unsubscribe.go
+++ b/internal/router/lang-user-unsubscribe.go
@@ -45,7 +45,7 @@ func Lang_User_Unsubscribe(l map[string]*locale.LocaleConfig, langs []config.Ava
statusText = l[lang].UnsubscribePage.OnServerError
status = fiber.ErrInternalServerError.Code
} else {
- statusColor = "0, 255, 0,"
+ statusColor = "0, 255, 0"
statusEmoji = "♡⸜(˶˃ ᵕ ˂˶)⸝♡"
statusText = l[lang].UnsubscribePage.Success
status = fiber.StatusOK