feat: no org, stop
This commit is contained in:
parent
cf7916b061
commit
1cf2440264
|
|
@ -137,6 +137,10 @@ export class SubscriptionRepository {
|
|||
const findOrg =
|
||||
org || (await this.getOrganizationByCustomerId(customerId))!;
|
||||
|
||||
if (!findOrg) {
|
||||
return ;
|
||||
}
|
||||
|
||||
await this._subscription.model.subscription.upsert({
|
||||
where: {
|
||||
organizationId: findOrg.id,
|
||||
|
|
|
|||
Loading…
Reference in New Issue