Skip to content

BillionMail gives you open-source MailServer, NewsLetter, Email Marketing — fully self-hosted, dev-friendly, and free from monthly fees. Join the discord: https://discord.gg/asfXzBUhZr

Refactor status update assignment for clarity

lotk95f87b2361e5
diff --git a/core/internal/service/multi_ip_domain/multi_ip_domain.go b/core/internal/service/multi_ip_domain/multi_ip_domain.go
index e1cc766f..61c29f35 100644
--- a/core/internal/service/multi_ip_domain/multi_ip_domain.go
+++ b/core/internal/service/multi_ip_domain/multi_ip_domain.go
@@ -312,7 +312,7 @@ func (s *MultiIPDomainService) ApplyConfigs(ctx context.Context) (appliedConfigs
}
// If the state is already "applied", then do not change it to "applying".
- if err := s.updateStatusByIDs(ctx, toappliedIDs, "applying"); err != nil {
+ if err = s.updateStatusByIDs(ctx, toappliedIDs, "applying"); err != nil {
return nil, nil, nil, gerror.Wrap(err, "failed to update configuration status to 'applying'")
}