Return the created env on create req

This commit is contained in:
Nikolai Rodionov 2024-04-30 10:03:06 +02:00
parent b61485348a
commit a2496757fa
Signed by: allanger
GPG Key ID: 0AA46A90E25592AD

View File

@ -64,7 +64,10 @@ func (e *EnvironmentsServer) Create(ctx context.Context, in *proto.CreateOptions
if err != nil { if err != nil {
return nil, err return nil, err
} }
return nil, nil return &proto.EnvironmentFull{
Metadata: in.GetMetadata(),
Spec: in.GetSpec(),
}, nil
} }
func (e *EnvironmentsServer) Update(ctx context.Context, in *proto.UpdateOptions) (*proto.EnvironmentFull, error) { func (e *EnvironmentsServer) Update(ctx context.Context, in *proto.UpdateOptions) (*proto.EnvironmentFull, error) {