feat: selling extractors
All checks were successful
Build / build (18) (push) Successful in 38s
Build / build (20) (push) Successful in 51s
Build / build (22) (push) Successful in 55s
Build / build (18) (pull_request) Successful in 52s
Build / build (20) (pull_request) Successful in 59s
Build / build (22) (pull_request) Successful in 35s
All checks were successful
Build / build (18) (push) Successful in 38s
Build / build (20) (push) Successful in 51s
Build / build (22) (push) Successful in 55s
Build / build (18) (pull_request) Successful in 52s
Build / build (20) (pull_request) Successful in 59s
Build / build (22) (pull_request) Successful in 35s
This commit is contained in:
parent
f2be362d08
commit
f102d65beb
@ -86,6 +86,11 @@ export const sellController: RequestHandler = async (req, res) => {
|
||||
inventory.Hoverboards.pull({ _id: sellItem.String });
|
||||
});
|
||||
}
|
||||
if (payload.Items.Drones) {
|
||||
payload.Items.Drones.forEach(sellItem => {
|
||||
inventory.Drones.pull({ _id: sellItem.String });
|
||||
});
|
||||
}
|
||||
if (payload.Items.Consumables) {
|
||||
const consumablesChanges = [];
|
||||
for (const sellItem of payload.Items.Consumables) {
|
||||
@ -152,6 +157,7 @@ interface ISellRequest {
|
||||
SentinelWeapons?: ISellItem[];
|
||||
OperatorAmps?: ISellItem[];
|
||||
Hoverboards?: ISellItem[];
|
||||
Drones?: ISellItem[];
|
||||
};
|
||||
SellPrice: number;
|
||||
SellCurrency:
|
||||
|
Loading…
x
Reference in New Issue
Block a user