From 059f3b764d57b2d5a16ba9c669e9c12162d2b509 Mon Sep 17 00:00:00 2001 From: hyunnaye Date: Mon, 15 Jul 2024 14:36:00 -0400 Subject: [PATCH] fix --- .../io/dockstore/githubdelivery/GithubDeliveryS3Client.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/githubdelivery/src/main/java/io/dockstore/githubdelivery/GithubDeliveryS3Client.java b/githubdelivery/src/main/java/io/dockstore/githubdelivery/GithubDeliveryS3Client.java index 5b967428..af1ae084 100644 --- a/githubdelivery/src/main/java/io/dockstore/githubdelivery/GithubDeliveryS3Client.java +++ b/githubdelivery/src/main/java/io/dockstore/githubdelivery/GithubDeliveryS3Client.java @@ -182,7 +182,7 @@ private void submitGitHubDeliveryEventsByKey(String key, WorkflowsApi workflowsA String obj = getObject(key); JsonObject jsonObject = GSON.fromJson(obj, JsonObject.class); JsonObject body = jsonObject.get("body").getAsJsonObject(); - String bodyString = body.toString().substring(1, body.toString().length() - 1); //removes the quotes that gets added with the toString method + String bodyString = body.toString(); //removes the quotes that gets added with the toString method System.out.println(bodyString); if ("installation_repositories".equals(jsonObject.get("eventType").getAsString())) { InstallationRepositoriesPayload payload = getGitHubInstallationRepositoriesPayloadByKey(bodyString, key);