mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-13 03:24:26 +00:00
16 lines
522 B
Go
16 lines
522 B
Go
|
package settings
|
||
|
|
||
|
import (
|
||
|
obj_pb "github.com/caos/zitadel/internal/api/grpc/object"
|
||
|
"github.com/caos/zitadel/internal/query"
|
||
|
settings_pb "github.com/caos/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
|
||
|
}
|