Skip to content

Commit

Permalink
idk why sometime key appear in Invalid_items
Browse files Browse the repository at this point in the history
  • Loading branch information
idinium96 committed Aug 4, 2020
1 parent a627fbd commit 8a06421
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/classes/MyHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,9 @@ export = class MyHandler extends Handler {
// User is taking too many / offering too many
hasOverstock = true;

this.reviewItems.overstockedItemsSKU.push(sku);
if (!['5021;6', '5000;6', '5001;6', '5002;6'].includes(sku)) {
this.reviewItems.overstockedItemsSKU.push(sku);
}

wrongAboutOffer.push({
reason: '🟦OVERSTOCKED',
Expand Down Expand Up @@ -748,7 +750,9 @@ export = class MyHandler extends Handler {
// Offer contains an item that we are not trading
hasInvalidItems = true;

this.reviewItems.invalidItemsSKU.push(sku);
if (!['5021;6', '5000;6', '5001;6', '5002;6'].includes(sku)) {
this.reviewItems.invalidItemsSKU.push(sku);
}

await sleepasync().Promise.sleep(1 * 1000);
const price = await this.bot.pricelist.getPricesTF(sku);
Expand Down

0 comments on commit 8a06421

Please sign in to comment.