Skip to content
Permalink
Browse files
fix(values v1 route): fix geoname case (DSP-1487) (#1839)
* fix(values v1 route): fix geoname case

* fix(values v1 route): fix geoname case
  • Loading branch information
tobiasschweizer committed Mar 31, 2021
1 parent 923abe8 commit 9d0e93e96891660e4484f9b23683aa9aefb18938
Showing with 2 additions and 2 deletions.
  1. +2 −2 webapi/src/main/scala/org/knora/webapi/routing/v1/ValuesRouteV1.scala
@@ -224,7 +224,7 @@ class ValuesRouteV1(routeData: KnoraRouteData) extends KnoraRoute(routeData) wit
Future(TimeValueV1(timeStamp), apiRequest.comment)

case OntologyConstants.KnoraBase.GeonameValue =>
Future(GeonameValueV1(apiRequest.geom_value.get), apiRequest.comment)
Future(GeonameValueV1(apiRequest.geoname_value.get), apiRequest.comment)

case _ => throw BadRequestException(s"No value submitted")
}
@@ -362,7 +362,7 @@ class ValuesRouteV1(routeData: KnoraRouteData) extends KnoraRoute(routeData) wit
Future(TimeValueV1(timeStamp), apiRequest.comment)

case OntologyConstants.KnoraBase.GeonameValue =>
Future(GeonameValueV1(apiRequest.geom_value.get), apiRequest.comment)
Future(GeonameValueV1(apiRequest.geoname_value.get), apiRequest.comment)

case _ => throw BadRequestException(s"No value submitted")
}

0 comments on commit 9d0e93e

Please sign in to comment.