UPDATE: Submission module
All checks were successful
Build and Release / release (push) Successful in 1m14s
All checks were successful
Build and Release / release (push) Successful in 1m14s
This commit is contained in:
@@ -59,6 +59,13 @@ func (s *entityService) SearchEntities(ctx context.Context, req *request.SearchE
|
||||
params.Name = req.Name
|
||||
}
|
||||
|
||||
if req.ProjectID != nil {
|
||||
projectID, err := convert.StringToUUID(*req.ProjectID)
|
||||
if err == nil {
|
||||
params.ProjectID = projectID
|
||||
}
|
||||
}
|
||||
|
||||
entities, err := s.entityRepo.Search(ctx, params)
|
||||
if err != nil {
|
||||
return nil, fiber.NewError(fiber.StatusInternalServerError, "Failed to search entities")
|
||||
|
||||
Reference in New Issue
Block a user