mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 01:37:31 +00:00
fix: some backend bugs (#1438)
* fix: fix setup * fix oidc app change * fix: fix migration and proto * fix: fix granted projects * setup1 apis instead of apps * fix: add object detail with creation date * fix user phone change * add localizer to AddOIDCAppResponse * fix test * fix domain test * fix: converter Co-authored-by: Livio Amstutz <livio.a@gmail.com>
This commit is contained in:
@@ -10,10 +10,18 @@ import (
|
||||
object_pb "github.com/caos/zitadel/pkg/grpc/object"
|
||||
)
|
||||
|
||||
func DomainToDetailsPb(objectDetail *domain.ObjectDetails) *object_pb.ObjectDetails {
|
||||
func DomainToChangeDetailsPb(objectDetail *domain.ObjectDetails) *object_pb.ObjectDetails {
|
||||
return &object_pb.ObjectDetails{
|
||||
Sequence: objectDetail.Sequence,
|
||||
ChangeDate: timestamppb.New(objectDetail.ChangeDate),
|
||||
ChangeDate: timestamppb.New(objectDetail.EventDate),
|
||||
ResourceOwner: objectDetail.ResourceOwner,
|
||||
}
|
||||
}
|
||||
|
||||
func DomainToAddDetailsPb(objectDetail *domain.ObjectDetails) *object_pb.ObjectDetails {
|
||||
return &object_pb.ObjectDetails{
|
||||
Sequence: objectDetail.Sequence,
|
||||
CreationDate: timestamppb.New(objectDetail.EventDate),
|
||||
ResourceOwner: objectDetail.ResourceOwner,
|
||||
}
|
||||
}
|
||||
@@ -32,7 +40,7 @@ func ToViewDetailsPb(
|
||||
}
|
||||
}
|
||||
|
||||
func ToDetailsPb(
|
||||
func ChangeToDetailsPb(
|
||||
sequence uint64,
|
||||
changeDate time.Time,
|
||||
resourceOwner string,
|
||||
@@ -44,6 +52,18 @@ func ToDetailsPb(
|
||||
}
|
||||
}
|
||||
|
||||
func AddToDetailsPb(
|
||||
sequence uint64,
|
||||
creationDate time.Time,
|
||||
resourceOwner string,
|
||||
) *object_pb.ObjectDetails {
|
||||
return &object_pb.ObjectDetails{
|
||||
Sequence: sequence,
|
||||
CreationDate: timestamppb.New(creationDate),
|
||||
ResourceOwner: resourceOwner,
|
||||
}
|
||||
}
|
||||
|
||||
func ToListDetails(
|
||||
totalResult,
|
||||
processedSequence uint64,
|
||||
|
Reference in New Issue
Block a user