Skip to content

Commit b9f8e10

Browse files
committed
Fix insert query
1 parent 1757e4e commit b9f8e10

File tree

1 file changed

+1
-1
lines changed
  • microsetta_private_api/db/patches

1 file changed

+1
-1
lines changed

microsetta_private_api/db/patches/132.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ SELECT
3939
-- Next, we'll create the new records in campaign.fundrazr_transaction_perk.
4040
-- We'll decrement quantity by 1 to reflect the kit that was already processed for each order.
4141
INSERT INTO campaign.fundrazr_transaction_perk (transaction_id, perk_id, quantity, processed)
42-
SELECT CONCAT(id, '-manual-patch-132'), perk_id, quantity-1, FALSE
42+
SELECT CONCAT(transaction_id, '-manual-patch-132'), perk_id, quantity-1, FALSE
4343
FROM campaign.fundrazr_transaction_perk WHERE transaction_id IN ('73A565339S129053J', '9G656551639672613', '8X951176NJ262430Y');
4444

4545
-- Lastly, we're going to set the original records in campaign.fundrazr_transaction_perk to a quantity of 1 to reflect what was fulfilled

0 commit comments

Comments
 (0)