Skip to content

Commit

Permalink
Small fixes in graphql requests
Browse files Browse the repository at this point in the history
  • Loading branch information
dragutin-nav committed Mar 7, 2024
1 parent d625122 commit 2205238
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,10 @@ public Journalpost hentJournalpost(String journalpostId) {

try (Response response = RestClient.baseClient().newCall(request).execute()) {
RestUtils.throwIfNotSuccessful(response);
return RestUtils.parseJsonResponseOrThrow(response, Journalpost.class);
assert response.body() != null;
Response body = response;
log.info(body.body().string());
return RestUtils.parseJsonResponseOrThrow(body, Journalpost.class);
}
}

Expand Down

0 comments on commit 2205238

Please sign in to comment.