Skip to content

Commit

Permalink
Switched to /ws/search endpoint for reference activities search
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-brinkman committed Apr 3, 2024
1 parent 69b7de1 commit cb84903
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,10 @@ class ReferenceAssessmentController {
}

// Get the activity records for the reference survey
def refActivities = activityService.activitiesForProjectActivity(config.reference.projectActivityId)
def refActivitiesSearch = activityService.search([
projectActivityId: config.reference.projectActivityId
])
def refActivities = refActivitiesSearch.resp.activities
def maxRecordsToCreate = config.assessment.maxRecordsToCreate as Integer

// Ensure the reference records exist
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,6 @@ class ActivityService {
list
}

def activitiesForProjectActivity(String id) {
webService.getJson(grailsApplication.config.ecodata.service.url + '/activitiesForProjectActivity/' + id)?.list
}

def submitActivitiesForPublication(activityIds) {
updatePublicationStatus(activityIds, 'pendingApproval')
}
Expand Down

0 comments on commit cb84903

Please sign in to comment.