From 14be40a292e9a03bfd545bf04cb19ab46745f4c4 Mon Sep 17 00:00:00 2001 From: Emi Matchu Date: Sun, 22 Jun 2025 12:24:27 -0700 Subject: [PATCH] Fix NC Mall Styling Studio import They made a small change to the API call! Fixed now! The other NC Mall syncing stuff to get current NC cost is broken, but that seems like a MUCH bigger change, so I won't bother just yet. --- app/services/neopets/nc_mall.rb | 2 +- spec/services/nc_mall_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/services/neopets/nc_mall.rb b/app/services/neopets/nc_mall.rb index 84b2c5ec..07111975 100644 --- a/app/services/neopets/nc_mall.rb +++ b/app/services/neopets/nc_mall.rb @@ -60,7 +60,7 @@ module Neopets::NCMall ["Cookie", "neologin=#{neologin}"], ["X-Requested-With", "XMLHttpRequest"], ], - {tab:, mode: "getStyles", species: species_id}.to_query, + {tab:, mode: "getAvailable", species: species_id}.to_query, ) do |response| if response.status != 200 raise ResponseNotOK.new(response.status), diff --git a/spec/services/nc_mall_spec.rb b/spec/services/nc_mall_spec.rb index b9d8b26a..90cddae5 100644 --- a/spec/services/nc_mall_spec.rb +++ b/spec/services/nc_mall_spec.rb @@ -58,7 +58,7 @@ RSpec.describe Neopets::NCMall, type: :model do "Cookie": "neologin=STUB_NEOLOGIN", "User-Agent": Rails.configuration.user_agent_for_neopets, }, - body: "mode=getStyles&species=2&tab=#{tab}", + body: "mode=getAvailable&species=2&tab=#{tab}", ) end