fix send ByAll

This commit is contained in:
MyronZhang
2025-02-11 18:32:59 +08:00
parent 8f6b13c2fe
commit a78360efd8
2 changed files with 9 additions and 3 deletions

View File

@@ -266,7 +266,7 @@ func testChannels(ctx context.Context, notify bool, scope string) error {
if notify {
err := message.Notify(message.ByAll, "渠道测试完成", "", "渠道测试完成,如果没有收到禁用通知,说明所有渠道都正常")
if err != nil {
logger.SysError(fmt.Sprintf("failed to send email: %s", err.Error()))
logger.SysError(fmt.Sprintf("failed to send notify: %s", err.Error()))
}
}
}()