Seleccionar idstudy segun identifierfield para redirect
This commit is contained in:
		| @ -79,13 +79,13 @@ defmodule ApiWeb.Redirect do | ||||
|       query = | ||||
|         if studyidentifier == "IDSTUDY" do | ||||
|           from s in "study", | ||||
|             where: s.accessionnumber == ^accessionnumber, | ||||
|             where: s.accessionnumber == ^accession, | ||||
|             select: %{ | ||||
|               idstudy: s.idstudy | ||||
|             } | ||||
|         else | ||||
|           from s in "study", | ||||
|             where: s.accessionnumber == ^accessionnumber, | ||||
|             where: s.accessionnumber == ^accession, | ||||
|             select: %{ | ||||
|               idstudy: s.idstudy | ||||
|             } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user