Fix invalid request body in SetUserPreferences method

This commit is contained in:
Stone_Red
2024-03-14 17:33:59 +01:00
parent d4b9ed769d
commit 28a320a41a
@@ -111,6 +111,6 @@ public class NotificationApiServer
/// <returns>The HTTP response message.</returns>
public async Task<HttpResponseMessage> 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);
}
}