zitadel/internal/api/grpc/settings/converter.go

16 lines
531 B
Go
Raw Normal View History

package settings
import (
obj_pb "github.com/zitadel/zitadel/internal/api/grpc/object"
"github.com/zitadel/zitadel/internal/query"
settings_pb "github.com/zitadel/zitadel/pkg/grpc/settings"
)
func NotificationProviderToPb(provider *query.DebugNotificationProvider) *settings_pb.DebugNotificationProvider {
mapped := &settings_pb.DebugNotificationProvider{
Compact: provider.Compact,
Details: obj_pb.ToViewDetailsPb(provider.Sequence, provider.CreationDate, provider.ChangeDate, provider.AggregateID),
}
return mapped
}