From e8ff791ace15e56956dd77bb51bd2ab2d8469ecc Mon Sep 17 00:00:00 2001 From: amianthus <49116958+SirTenzin@users.noreply.github.com> Date: Fri, 19 Sep 2025 12:58:48 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20dont=20use=20unmatched=20?= =?UTF-8?q?prices?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/internal/migrations/runRewardMigrationTask.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/src/internal/migrations/runRewardMigrationTask.ts b/server/src/internal/migrations/runRewardMigrationTask.ts index 67b7d0cd1..a6395fbd7 100644 --- a/server/src/internal/migrations/runRewardMigrationTask.ts +++ b/server/src/internal/migrations/runRewardMigrationTask.ts @@ -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, }, }, });