From 28a320a41ac110f4c6ac2b2baaa855144d1c2988 Mon Sep 17 00:00:00 2001 From: Stone_Red <56473591+Stone-Red-Code@users.noreply.github.com> Date: Thu, 14 Mar 2024 17:33:59 +0100 Subject: [PATCH] Fix invalid request body in `SetUserPreferences` method --- src/StoneRed.NetificationApi/Server/NotificationApiServer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/StoneRed.NetificationApi/Server/NotificationApiServer.cs b/src/StoneRed.NetificationApi/Server/NotificationApiServer.cs index 34538dd..ef3ac93 100644 --- a/src/StoneRed.NetificationApi/Server/NotificationApiServer.cs +++ b/src/StoneRed.NetificationApi/Server/NotificationApiServer.cs @@ -111,6 +111,6 @@ public class NotificationApiServer /// The HTTP response message. public async Task SetUserPreferences(string userId, SetUserPreferencesData setUserPreferencesData) { - return await httpClient.PostAsJsonAsync($"user_preferences/{userId}", setUserPreferencesData, Configuration.JsonSerializerOptions); + return await httpClient.PostAsJsonAsync($"user_preferences/{userId}", setUserPreferencesData.Preferences, Configuration.JsonSerializerOptions); } } \ No newline at end of file