diff --git a/app/controllers/private_api/proteins_controller.rb b/app/controllers/private_api/proteins_controller.rb index cef14af..a4f82f3 100644 --- a/app/controllers/private_api/proteins_controller.rb +++ b/app/controllers/private_api/proteins_controller.rb @@ -23,7 +23,7 @@ def proteins search_result = search([ peptide ], equate_il) # Collect all protein information - @proteins = UniprotEntry.find(search_result["uniprot_accessions"]) + @proteins = UniprotEntry.where(uniprot_accession_number: search_result["uniprot_accessions"]) @lca = search_result["lca"] || -1