Skip to content

Commit

Permalink
Refactored config retrieval
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-brinkman committed Apr 26, 2024
1 parent 2a18d56 commit 2dd86f0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 2dd86f0

Please sign in to comment.