fix: don't charge platinum for renaming kaithe
All checks were successful
Build / build (18) (push) Successful in 38s
Build / build (20) (push) Successful in 1m9s
Build / build (22) (push) Successful in 1m1s
Build / build (18) (pull_request) Successful in 37s
Build / build (22) (pull_request) Successful in 1m2s
Build / build (20) (pull_request) Successful in 1m10s

This commit is contained in:
Sainan 2025-04-03 01:26:14 +02:00
parent d4d887a5a4
commit f6f23991fe

View File

@ -18,7 +18,11 @@ export const nameWeaponController: RequestHandler = async (req, res) => {
} else {
item.ItemName = undefined;
}
const currencyChanges = updateCurrency(inventory, "webui" in req.query ? 0 : 15, true);
const currencyChanges = updateCurrency(
inventory,
req.query.Category == "Horses" || "webui" in req.query ? 0 : 15,
true
);
await inventory.save();
res.json({
InventoryChanges: currencyChanges