mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 21:27:20 +00:00
fix: quota switch (#10347)
This commit is contained in:
@@ -74,7 +74,7 @@ export class QuotaOverride {
|
|||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
case SubscriptionPlan.Pro:
|
case SubscriptionPlan.Pro:
|
||||||
await this.models.userFeature.add(
|
await this.models.userFeature.switchQuota(
|
||||||
userId,
|
userId,
|
||||||
recurring === 'lifetime' ? 'lifetime_pro_plan_v1' : 'pro_plan_v1',
|
recurring === 'lifetime' ? 'lifetime_pro_plan_v1' : 'pro_plan_v1',
|
||||||
'subscription activated'
|
'subscription activated'
|
||||||
|
|||||||
Reference in New Issue
Block a user