mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-11-27 04:53:02 +03:00
fix(server): do not return subscription if not active (#4820)
This commit is contained in:
parent
0a88be7771
commit
a3906bf92b
@ -270,6 +270,7 @@ export class UserSubscriptionResolver {
|
||||
return this.db.userSubscription.findUnique({
|
||||
where: {
|
||||
userId: user.id,
|
||||
status: SubscriptionStatus.Active,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user