Skip to content

Commit

Permalink
#1570 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
schoicsiro committed Nov 21, 2023
1 parent 6f7ba11 commit 2351856
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ class SiteService {
def baseUrl = "${grailsApplication.config.spatial.layersUrl}/shape/upload/shp"
def userId = userService.getUser().userId

def site = [name:name, description: description, user_id:userId]
def site = [name:name, description: description, user_id:userId, api_key:grailsApplication.config.api_key]

def url = "${baseUrl}/${shapeFileId}/${siteId}"

Expand Down Expand Up @@ -245,7 +245,7 @@ class SiteService {
Geometry geom = placemark.getDefaultGeometry()
def site = [name:name, description: description, user_id:userId, api_key:grailsApplication.config.api_key, wkt:geom.toText()]

def result = webService.doPost(url, site)
def result = webService.doPost(url, site, true)
if (!result.error) {
def id = result.resp.id
if (!result.resp.error) {
Expand Down

0 comments on commit 2351856

Please sign in to comment.