diff --git a/src/lib/tenants/services/tenants.service.ts b/src/lib/tenants/services/tenants.service.ts index 7fcf40e..bc5908b 100644 --- a/src/lib/tenants/services/tenants.service.ts +++ b/src/lib/tenants/services/tenants.service.ts @@ -3,7 +3,7 @@ import dayjs from 'dayjs'; import { NGXLogger } from 'ngx-logger'; import { List } from '../../utils'; import { GenericService } from '../../services'; -import { Tenant } from '../types'; +import { Tenant, TenantDetails } from '../types'; import { Observable } from 'rxjs'; export interface IStoredTenantId { @@ -27,7 +27,6 @@ export class TenantsService extends GenericService { key: localStorage.key.bind(localStorage), }; readonly #activeTenantId = signal(''); - protected readonly _defaultModelPath = 'tenants'; protected readonly _serviceName: string = 'tenant-user-management'; @@ -35,7 +34,7 @@ export class TenantsService extends GenericService { return this.#activeTenantId(); } - async selectTenant(tenantId: string) { + async selectTenant(tenantId: string): Promise { this.#mutateStorage(tenantId); this.#setActiveTenantId(tenantId); return true; @@ -101,7 +100,7 @@ export class TenantsService extends GenericService { this.#logger.info('[TENANTS] Stored tenants at logout: ', storedTenants); } - getActiveTenant>(): Observable> { + getActiveTenant(): Observable> { return this._getOne([this.activeTenantId]); }