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
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:
parent
d4d887a5a4
commit
f6f23991fe
@ -18,7 +18,11 @@ export const nameWeaponController: RequestHandler = async (req, res) => {
|
|||||||
} else {
|
} else {
|
||||||
item.ItemName = undefined;
|
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();
|
await inventory.save();
|
||||||
res.json({
|
res.json({
|
||||||
InventoryChanges: currencyChanges
|
InventoryChanges: currencyChanges
|
||||||
|
Loading…
x
Reference in New Issue
Block a user