fix: nil pointer

This commit is contained in:
Fu Diwei
2025-01-07 01:10:26 +08:00
parent 9a937fa072
commit 7e376071f5
3 changed files with 17 additions and 22 deletions

View File

@@ -22,11 +22,6 @@ type NotifyTemplate struct {
type NotifyChannelsSettingsContent map[string]map[string]any
type NotifyMessage struct {
Subject string `json:"subject"`
Message string `json:"message"`
}
func (s *Settings) GetNotifyChannelConfig(channel string) (map[string]any, error) {
conf := &NotifyChannelsSettingsContent{}
if err := json.Unmarshal([]byte(s.Content), conf); err != nil {