Skip to content
This repository has been archived by the owner on Jan 21, 2021. It is now read-only.

Commit

Permalink
Change input from JSONArray to JSONObject
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarvanerp committed Nov 9, 2016
1 parent f024b23 commit bc5ca6f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class RestExportService {
task.getTsv()
}

public def retrieveDataTypes(params) {
public List<DataTypeRetrieved> retrieveDataTypes(params) {
if (!(params.containsKey('concepts'))) {
throw new NoSuchResourceException("No parameter named concepts was given.")
}
Expand All @@ -51,7 +51,7 @@ class RestExportService {
try {
def conceptArguments = jsonSlurper.parseText(conceptParameters)
int cohortNumber = 1
conceptArguments.each { it ->
conceptArguments.cohorts.each { it ->
List conceptKeysList = it.conceptKeys
cohortNumberID = cohortNumber
conceptKeysList.collect { conceptKey ->
Expand Down

0 comments on commit bc5ca6f

Please sign in to comment.