Add a search string to envs
This commit is contained in:
parent
e71636896e
commit
638e35b60d
@ -115,7 +115,7 @@ func (e *EnvironmentsServer) Update(ctx context.Context, in *proto.UpdateOptions
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
return &proto.EnvironmentFull{
|
return &proto.EnvironmentFull{
|
||||||
Metadata: in.GetMetadata(),
|
Metadata: in.GetMetadata(),
|
||||||
Id: in.GetId(),
|
Id: in.GetId(),
|
||||||
@ -191,7 +191,7 @@ func (e *EnvironmentsServer) List(in *proto.ListOptions, stream proto.Environmen
|
|||||||
Token: in.GetToken().GetToken(),
|
Token: in.GetToken().GetToken(),
|
||||||
}
|
}
|
||||||
|
|
||||||
envs, err := environment.ListEnvs(stream.Context())
|
envs, err := environment.ListEnvs(stream.Context(), in.GetSearchString())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user