Revert "feat(server): deprecated the subscription module."

This reverts commit 3b79ac66ae.
This commit is contained in:
Ahmed Bouhuolia
2024-04-13 11:05:53 +02:00
parent 4d616e9287
commit a39dcd00d5
37 changed files with 1445 additions and 7 deletions

View File

@@ -144,6 +144,7 @@ export default class OrganizationService {
public async currentOrganization(tenantId: number): Promise<ITenant> {
const tenant = await Tenant.query()
.findById(tenantId)
.withGraphFetched('subscriptions')
.withGraphFetched('metadata');
this.throwIfTenantNotExists(tenant);