Fixed for real this time
This commit is contained in:
parent
ab057def13
commit
d328e343f5
@ -17,8 +17,8 @@ export const focusController: RequestHandler = async (req, res) => {
|
|||||||
case FocusOperation.InstallLens: {
|
case FocusOperation.InstallLens: {
|
||||||
const request = JSON.parse(String(req.body)) as ILensInstallRequest;
|
const request = JSON.parse(String(req.body)) as ILensInstallRequest;
|
||||||
const inventory = await getInventory(accountId);
|
const inventory = await getInventory(accountId);
|
||||||
for (const item of inventory[request.ItemCategory]) {
|
for (const item of inventory[request.Category]) {
|
||||||
if (item._id.toString() == request.ItemId) {
|
if (item._id.toString() == request.WeaponId) {
|
||||||
item.FocusLens = request.LensType;
|
item.FocusLens = request.LensType;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -201,8 +201,8 @@ interface ISentTrainingAmplifierRequest {
|
|||||||
|
|
||||||
interface ILensInstallRequest {
|
interface ILensInstallRequest {
|
||||||
LensType: string;
|
LensType: string;
|
||||||
ItemCategory: TEquipmentKey;
|
Category: TEquipmentKey;
|
||||||
ItemId: string;
|
WeaponId: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Works for ways & upgrades
|
// Works for ways & upgrades
|
||||||
|
Loading…
x
Reference in New Issue
Block a user