fix: acrithis vendor freezing with fullyStockedVendors (#2326)
Some checks failed
Build Docker image / docker-arm64 (push) Waiting to run
Build / build (push) Has been cancelled
Build Docker image / docker-amd64 (push) Has been cancelled

Permanent offers were not satisfying bin constraints

Reviewed-on: #2326
Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com>
Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
This commit is contained in:
Sainan 2025-06-26 22:25:31 -07:00 committed by Sainan
parent bbccee0637
commit 3cae42c7d6

View File

@ -281,6 +281,10 @@ const generateVendorManifest = (
offersToAdd.push(item); offersToAdd.push(item);
++offset; ++offset;
} }
if (missingItemsPerBin[item.bin]) {
missingItemsPerBin[item.bin] -= 1;
numOffersThatNeedToMatchABin -= 1;
}
} else { } else {
numCountedOffers += 1 + item.duplicates; numCountedOffers += 1 + item.duplicates;
} }