From 4338ad74c544dfcb9de35b3bc2cb1a674d24de21 Mon Sep 17 00:00:00 2001 From: 1379 <1379@1379.com> Date: Thu, 15 Dec 2022 23:38:34 +0800 Subject: [PATCH] fix: update theme_base url when option update --- conf/config.dev.yaml | 2 +- event/listener/template_config.go | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/conf/config.dev.yaml b/conf/config.dev.yaml index 6d06523..5c106d8 100644 --- a/conf/config.dev.yaml +++ b/conf/config.dev.yaml @@ -1,5 +1,5 @@ server: - host: 127.0.0.1 + host: 0.0.0.0 port: 8080 logging: diff --git a/event/listener/template_config.go b/event/listener/template_config.go index 7404ba3..22fa12b 100644 --- a/event/listener/template_config.go +++ b/event/listener/template_config.go @@ -66,6 +66,10 @@ func (t *TemplateConfigListener) HandleUserUpdateEvent(ctx context.Context, user } func (t *TemplateConfigListener) HandleOptionUpdateEvent(ctx context.Context, optionUpdateEvent event.Event) error { + err := t.loadThemeConfig(ctx) + if err != nil { + return err + } return t.loadOption(ctx) }