Add a search string to envs

This commit is contained in:
Nikolai Rodionov 2024-05-05 21:12:56 +02:00
parent e71636896e
commit 638e35b60d
Signed by: allanger
GPG Key ID: 0AA46A90E25592AD

View File

@ -115,7 +115,7 @@ func (e *EnvironmentsServer) Update(ctx context.Context, in *proto.UpdateOptions
if err != nil {
return nil, err
}
return &proto.EnvironmentFull{
Metadata: in.GetMetadata(),
Id: in.GetId(),
@ -191,7 +191,7 @@ func (e *EnvironmentsServer) List(in *proto.ListOptions, stream proto.Environmen
Token: in.GetToken().GetToken(),
}
envs, err := environment.ListEnvs(stream.Context())
envs, err := environment.ListEnvs(stream.Context(), in.GetSearchString())
if err != nil {
return err
}