more cart

This commit is contained in:
2026-07-01 10:40:28 +02:00
parent 75db64ce75
commit b1e99891e9
30 changed files with 1058 additions and 93 deletions
+11
View File
@@ -29,5 +29,16 @@ func HandleSetProfile(p *ProfileGrain, m *messages.SetProfile) error {
if m.AvatarUrl != nil {
p.AvatarUrl = *m.AvatarUrl
}
if m.OrderEmails != nil || m.MarketingEmails != nil {
if p.EmailPreferences == nil {
p.EmailPreferences = &EmailPreferences{}
}
if m.OrderEmails != nil {
p.EmailPreferences.OrderEmails = m.OrderEmails
}
if m.MarketingEmails != nil {
p.EmailPreferences.MarketingEmails = m.MarketingEmails
}
}
return nil
}