fix(server): do not return subscription if not active (#4820)

This commit is contained in:
liuyi 2023-11-02 22:17:26 +08:00 committed by GitHub
parent 0a88be7771
commit a3906bf92b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -270,6 +270,7 @@ export class UserSubscriptionResolver {
return this.db.userSubscription.findUnique({
where: {
userId: user.id,
status: SubscriptionStatus.Active,
},
});
}