fix(server): should redeem onetime invoice only once (#9927)

fix CLOUD-115
This commit is contained in:
forehalo
2025-02-02 09:18:06 +00:00
parent a673f42073
commit d03447f52e
4 changed files with 76 additions and 27 deletions

View File

@@ -565,6 +565,8 @@ model Invoice {
lastPaymentError String? @map("last_payment_error") @db.Text
// stripe hosted invoice link
link String? @db.Text
// whether the onetime subscription has been redeemed
onetimeSubscriptionRedeemed Boolean @map("onetime_subscription_redeemed") @default(false)
@@index([targetId])
@@map("invoices")