1
0
mirror of https://github.com/zitadel/zitadel.git synced 2024-12-16 21:08:00 +00:00
zitadel/internal/api/grpc/admin/privacy_policy_converter.go
Miguel Cabrerizo 1b9cea0e0c
feat: add Help/Support e-mail for instance/org ()
feat: help and support email in privacy policy
2023-03-28 21:36:52 +02:00

16 lines
409 B
Go

package admin
import (
"github.com/zitadel/zitadel/internal/domain"
admin_pb "github.com/zitadel/zitadel/pkg/grpc/admin"
)
func UpdatePrivacyPolicyToDomain(req *admin_pb.UpdatePrivacyPolicyRequest) *domain.PrivacyPolicy {
return &domain.PrivacyPolicy{
TOSLink: req.TosLink,
PrivacyLink: req.PrivacyLink,
HelpLink: req.HelpLink,
SupportEmail: domain.EmailAddress(req.SupportEmail),
}
}