A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
fix(dashboard): set default smtp status
LinkinStarsbdc498ce399c
diff --git a/internal/service/dashboard/dashboard_service.go b/internal/service/dashboard/dashboard_service.goindex 5d3aa4ed..c9b6efe1 100644--- a/internal/service/dashboard/dashboard_service.go+++ b/internal/service/dashboard/dashboard_service.go@@ -235,6 +235,7 @@ func (ds *dashboardService) remoteVersion(ctx context.Context) string {}func (ds *dashboardService) smtpStatus(ctx context.Context) (smtpStatus string) {+ smtpStatus = "not_configured"emailConf, err := ds.configService.GetStringValue(ctx, "email.config")if err != nil {log.Errorf("get email config failed: %s", err)