fix multi-peer generation, fix prefix handling (#491)

(cherry picked from commit c20f17cddf)
This commit is contained in:
Christoph Haas
2025-08-09 15:55:29 +02:00
parent 9be2133220
commit b546eec4ed
7 changed files with 18 additions and 22 deletions

View File

@@ -172,13 +172,13 @@ func NewDomainPeer(src *Peer) *domain.Peer {
type MultiPeerRequest struct {
Identifiers []string `json:"Identifiers"`
Suffix string `json:"Suffix"`
Prefix string `json:"Prefix"`
}
func NewDomainPeerCreationRequest(src *MultiPeerRequest) *domain.PeerCreationRequest {
return &domain.PeerCreationRequest{
UserIdentifiers: src.Identifiers,
Suffix: src.Suffix,
Prefix: src.Prefix,
}
}