mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-01 17:39:55 +08:00
feat: check quota correctly (#6561)
This commit is contained in:
@@ -527,7 +527,10 @@ export class SubscriptionService {
|
||||
nextBillAt = new Date(subscription.current_period_end * 1000);
|
||||
}
|
||||
} else {
|
||||
this.event.emit('user.subscription.canceled', user.id);
|
||||
this.event.emit('user.subscription.canceled', {
|
||||
userId: user.id,
|
||||
plan,
|
||||
});
|
||||
}
|
||||
|
||||
const commonData = {
|
||||
|
||||
Reference in New Issue
Block a user