smol changes

This commit is contained in:
m5r
2021-10-01 23:05:07 +02:00
parent 771fea4d7b
commit 300bfa8e65
3 changed files with 9 additions and 8 deletions

View File

@ -78,7 +78,7 @@ export const getServerSideProps: GetServerSideProps<Props> = async ({ req, res }
const subscription = await db.subscription.findFirst({
where: {
organizationId: session.orgId,
status: SubscriptionStatus.active,
status: { not: SubscriptionStatus.deleted },
},
});
if (!subscription) {