Skip to content

Commit

Permalink
Update file
Browse files Browse the repository at this point in the history
  • Loading branch information
shreelakshmijoshi committed May 10, 2024
1 parent 57635ab commit d33e28a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public String buildPostgresWriteQuery(JsonObject request) {
String userId = request.getString(USER_ID);
String api = request.getString(API);
String method = request.getString(HTTP_METHOD);
String body = request.getString(BODY);
JsonObject body = request.getJsonObject(BODY);
long responseSize = request.getLong(SIZE);
String isoTime = request.getString(ISO_TIME);
String databaseTableName = config.getString(APD_PG_TABLE_NAME);
Expand All @@ -49,7 +49,7 @@ public String buildPostgresWriteQuery(JsonObject request) {
.replace("$2", userId)
.replace("$3", api)
.replace("$4", method)
.replace("$5", body)
.replace("$5", body.encode())
.replace("$6", Long.toString(responseSize))
.replace("$7", utcTime.toString());
}
Expand Down

0 comments on commit d33e28a

Please sign in to comment.