From 2dd86f0f291fd56890ef29abe0fdc63d6d800540 Mon Sep 17 00:00:00 2001 From: Jack Brinkman Date: Fri, 26 Apr 2024 12:04:50 +1000 Subject: [PATCH] Refactored config retrieval --- .../org/ala/biocollect/ReferenceAssessmentController.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/grails-app/controllers/au/org/ala/biocollect/ReferenceAssessmentController.groovy b/grails-app/controllers/au/org/ala/biocollect/ReferenceAssessmentController.groovy index 299e70cd0..b6ede6c06 100644 --- a/grails-app/controllers/au/org/ala/biocollect/ReferenceAssessmentController.groovy +++ b/grails-app/controllers/au/org/ala/biocollect/ReferenceAssessmentController.groovy @@ -17,7 +17,7 @@ class ReferenceAssessmentController { def baseUrl = '' if (!refDoc["url"].startsWith('http')) { - baseUrl = grailsApplication.config.grails.serverURL + baseUrl = grailsApplication.config.getProperty("grails.serverURL", String) } def assessPhoto = [ @@ -77,7 +77,7 @@ class ReferenceAssessmentController { } def requestRecords() { - def config = grailsApplication.config.refAssess + def config = grailsApplication.config.getProperty("refAssess", Map) def body = request.JSON def result