mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-01 00:06:38 +00:00
fix some errors
This commit is contained in:
committed by
Owen Schwartz
parent
c3b2ab4e35
commit
d0087cb935
@@ -90,7 +90,7 @@ export async function handleSubscriptionUpdated(
|
||||
const itemsToUpsert = fullSubscription.items.data.map((item) => {
|
||||
// Try to get featureId from price
|
||||
let featureId: string | null = getFeatureIdByPriceId(item.price.id) || null;
|
||||
|
||||
|
||||
// If no match, try to preserve existing featureId
|
||||
if (!featureId) {
|
||||
const existingItem = existingItems.find(
|
||||
|
||||
Reference in New Issue
Block a user