fix: 🐛 dont use unmatched prices

This commit is contained in:
amianthus
2025-09-19 12:58:48 +01:00
parent e2528194fd
commit e8ff791ace

View File

@@ -182,7 +182,9 @@ export async function runRewardMigrationTask({
duration_value: reward.discount_config!.duration_value,
should_rollover: reward.discount_config!.should_rollover,
apply_to_all: reward.discount_config!.apply_to_all,
price_ids: [...unmatchedPrices, ...newPriceIds],
// Note: I used to include unmatchedPrices as a safety precaution, but it seems unecessary
// price_ids: [...unmatchedPrices, ...newPriceIds],
price_ids: newPriceIds,
},
},
});