mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
fix(server): should redeem onetime invoice only once (#9927)
fix CLOUD-115
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user