Skip to content
Snippets Groups Projects
Verified Commit eb8c6013 authored by Alex Timmermann's avatar Alex Timmermann
Browse files

fix: return decoded json in GeoAPI client

parent 0ccf2675
No related branches found
No related tags found
No related merge requests found
......@@ -57,7 +57,7 @@ export class GeoApiClient implements ResolvesCoordinates, ResolvesCity {
throw new GraphQLError("Can't fetchPlaceDetails for geolocationId " + geolocationId)
}
return body as GeoAPIResponse
return data as GeoAPIResponse
} catch (e) {
this.logger.error(`Response is not JSON: "${body}"`)
throw e
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment