mirror of
https://github.com/usual2970/certimate.git
synced 2025-07-27 21:08:34 +00:00
refactor: clean code
This commit is contained in:
@@ -21,7 +21,7 @@ func NewNotifyNode(node *domain.WorkflowNode) *notifyNode {
|
||||
return ¬ifyNode{
|
||||
node: node,
|
||||
Logger: NewLogger(node),
|
||||
settingRepo: repository.NewSettingRepository(),
|
||||
settingRepo: repository.NewSettingsRepository(),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ func (n *notifyNode) Run(ctx context.Context) error {
|
||||
return err
|
||||
}
|
||||
|
||||
channelConfig, err := setting.GetChannelContent(n.node.GetConfigString("channel"))
|
||||
channelConfig, err := setting.GetNotifyChannelConfig(n.node.GetConfigString("channel"))
|
||||
if err != nil {
|
||||
n.AddOutput(ctx, n.node.Name, "获取通知渠道配置失败", err.Error())
|
||||
return err
|
||||
|
Reference in New Issue
Block a user