feat: no org, stop

This commit is contained in:
Nevo David 2025-05-05 20:47:40 +07:00
parent cf7916b061
commit 1cf2440264
1 changed files with 4 additions and 0 deletions

View File

@ -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,