Re-evaluate unavailable flag on every history merge.

This commit is contained in:
Mario Zechner 2023-06-21 21:21:30 +02:00
parent 1b9505d9cc
commit 52748c1d70

View File

@ -73,6 +73,7 @@ function mergePriceHistory(oldItems, items) {
const lookup = {};
for (oldItem of oldItems) {
delete oldItem.unavailable;
lookup[oldItem.store + oldItem.id] = oldItem;
}