2
0

🚑 (billing) Fix chats pricing tiers incremental flat amou…

This commit is contained in:
Baptiste Arnaud
2023-10-17 08:32:41 +02:00
parent 797751b418
commit 6b0c263f88
5 changed files with 44 additions and 44 deletions

View File

@ -228,6 +228,14 @@ const migrateSubscriptionsToUsageBased = async () => {
price: proPriceId,
quantity: 1,
},
{
id: newSubscription.items.data.find(
(item) =>
item.price.id === starterChatsPriceId ||
item.price.id === proChatsPriceId
)?.id,
price: proChatsPriceId,
},
],
})