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