Skip to content
Snippets Groups Projects
Commit 8637c0a8 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

mirna db doesn't require disease

parent e7ee21bc
No related branches found
No related tags found
1 merge request!70Resolve "Get drugs by target"
......@@ -228,10 +228,6 @@ public class MiRnaRestImpl extends BaseRestImpl {
}
Project project = model.getProject();
if (project.getDisease() == null) {
throw new QueryException("Project doesn't have disease associated to it");
}
Integer dbId = Integer.valueOf(targetId);
List<Element> targets = new ArrayList<>();
if (targetType.equals(ElementIdentifierType.ALIAS.getJsName())) {
......@@ -255,7 +251,7 @@ public class MiRnaRestImpl extends BaseRestImpl {
Set<String> columnSet = createMiRnaColumnSet(columns);
List<MiRNAView> miRnas = miRnaService.getForTargets(targets, new DbSearchCriteria().model(model).organisms(organism).disease(project.getDisease()));
List<MiRNAView> miRnas = miRnaService.getForTargets(targets, new DbSearchCriteria().model(model).organisms(organism));
List<Map<String, Object>> result = new ArrayList<>();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment