Skip to content

Commit 2dd86f0

Browse files
committed
Refactored config retrieval
1 parent 2a18d56 commit 2dd86f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

grails-app/controllers/au/org/ala/biocollect/ReferenceAssessmentController.groovy

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class ReferenceAssessmentController {
1717

1818
def baseUrl = ''
1919
if (!refDoc["url"].startsWith('http')) {
20-
baseUrl = grailsApplication.config.grails.serverURL
20+
baseUrl = grailsApplication.config.getProperty("grails.serverURL", String)
2121
}
2222

2323
def assessPhoto = [
@@ -77,7 +77,7 @@ class ReferenceAssessmentController {
7777
}
7878

7979
def requestRecords() {
80-
def config = grailsApplication.config.refAssess
80+
def config = grailsApplication.config.getProperty("refAssess", Map)
8181
def body = request.JSON
8282
def result
8383

0 commit comments

Comments
 (0)