From ed9328a9a1a43f35f3bcb1aeb1660bea43d7d3b6 Mon Sep 17 00:00:00 2001 From: West <30056636+West14@users.noreply.github.com> Date: Fri, 22 Aug 2025 19:54:53 +0300 Subject: [PATCH] fix(store): oboobs model deserialization, log media service errors --- modules/ContentStore/Handler/Store.cs | 3 ++- modules/ContentStore/Model/OBoobsItem.cs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/ContentStore/Handler/Store.cs b/modules/ContentStore/Handler/Store.cs index c19cd56..75711bd 100644 --- a/modules/ContentStore/Handler/Store.cs +++ b/modules/ContentStore/Handler/Store.cs @@ -123,8 +123,9 @@ public class Store : CommonHandler { await PerformPurchase(mediaService, messageId); } - catch + catch (Exception e) { + Console.WriteLine(e); answer = "Товар недоступен"; await Bot.EditMessageText(Chat.Id, messageId, diff --git a/modules/ContentStore/Model/OBoobsItem.cs b/modules/ContentStore/Model/OBoobsItem.cs index e85c8ad..1b0c350 100644 --- a/modules/ContentStore/Model/OBoobsItem.cs +++ b/modules/ContentStore/Model/OBoobsItem.cs @@ -16,6 +16,6 @@ public record OBoobsItem [JsonPropertyName("model")] public string? Model { get; set; } - [JsonPropertyName("rank")] + [JsonPropertyName("preview")] public string Preview { get; set; } = string.Empty; } \ No newline at end of file