From ef9ae084a0f0f3e2d37683ea88bd84b51d561b05 Mon Sep 17 00:00:00 2001 From: Adam Chance <6444703+drakon64@users.noreply.github.com> Date: Sun, 22 Dec 2024 19:55:32 +0000 Subject: [PATCH] Fix incorrect serializer --- Ktisis.Common/Clients/GoogleClient.cs | 5 ++++- .../EventProcessors/GitHubWebhookEventProcessor.cs | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Ktisis.Common/Clients/GoogleClient.cs b/Ktisis.Common/Clients/GoogleClient.cs index a7c5273..425e5d8 100644 --- a/Ktisis.Common/Clients/GoogleClient.cs +++ b/Ktisis.Common/Clients/GoogleClient.cs @@ -83,7 +83,10 @@ public static async Task CreateTask(CreateCloudTask task) new HttpRequestMessage { Method = HttpMethod.Post, - Content = JsonContent.Create(task, GoogleCloudSerializerContext.Default.Instance), + Content = JsonContent.Create( + task, + GoogleCloudSerializerContext.Default.CreateCloudTask + ), Headers = { { "Authorization", $"{accessToken.TokenType} {accessToken.AccessToken}" }, diff --git a/Ktisis.Receiver/EventProcessors/GitHubWebhookEventProcessor.cs b/Ktisis.Receiver/EventProcessors/GitHubWebhookEventProcessor.cs index 33822df..ab8487e 100644 --- a/Ktisis.Receiver/EventProcessors/GitHubWebhookEventProcessor.cs +++ b/Ktisis.Receiver/EventProcessors/GitHubWebhookEventProcessor.cs @@ -200,7 +200,7 @@ rm actions-runner-linux-{runnerArchitecture}-2.321.0.tar.gz ], }, }, - GoogleCloudSerializerContext.Default.Instance + GoogleCloudSerializerContext.Default.InstanceTask ) ) ),