let user know when his cancelled sub is going to expire
This commit is contained in:
@ -8,7 +8,7 @@ export default resolver.pipe(resolver.authorize(), async (_ = null, { session })
|
||||
return db.subscription.findFirst({
|
||||
where: {
|
||||
organizationId: session.orgId,
|
||||
status: { not: SubscriptionStatus.deleted },
|
||||
OR: [{ status: { not: SubscriptionStatus.deleted } }, { cancellationEffectiveDate: { gt: new Date() } }],
|
||||
},
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user