mirror of
https://github.com/usual2970/certimate.git
synced 2025-10-05 22:14:53 +00:00
fix: nil pointer
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user