diff --git a/.source b/.source index 731e6713007..2be49c6aeb7 160000 --- a/.source +++ b/.source @@ -1 +1 @@ -Subproject commit 731e6713007d677df6ee9893cd822029b81edf29 +Subproject commit 2be49c6aeb7318661e9afb915030908bc7c0c1a3 diff --git a/apps/api/src/app/support/usecases/plain-cards.usecase.ts b/apps/api/src/app/support/usecases/plain-cards.usecase.ts index c81be8d3c67..e9d2fca90f2 100644 --- a/apps/api/src/app/support/usecases/plain-cards.usecase.ts +++ b/apps/api/src/app/support/usecases/plain-cards.usecase.ts @@ -30,6 +30,9 @@ export class PlainCardsUsecase { } const organizations = await this.organizationRepository.findUserActiveOrganizations(command?.customer?.externalId); + const sessions = await this.organizationRepository.findUseActiveSessions(command?.customer?.externalId); + + console.log('sessions ==>', sessions); const organizationsComponent = organizations?.map((organization) => { return { componentContainer: { diff --git a/libs/dal/src/repositories/organization/community.organization.repository.ts b/libs/dal/src/repositories/organization/community.organization.repository.ts index 243fb99f367..e68ca776260 100644 --- a/libs/dal/src/repositories/organization/community.organization.repository.ts +++ b/libs/dal/src/repositories/organization/community.organization.repository.ts @@ -29,6 +29,10 @@ export class CommunityOrganizationRepository }); } + async findUseActiveSessions(userId: string): Promise<[]> { + throw new Error('Not implemented'); + } + private async getUsersMembersOrganizationIds(userId: string): Promise { const members = await this.memberRepository.findUserActiveMembers(userId); diff --git a/libs/dal/src/repositories/organization/organization-repository.interface.ts b/libs/dal/src/repositories/organization/organization-repository.interface.ts index 6fe7c789fa2..44ae0f62549 100644 --- a/libs/dal/src/repositories/organization/organization-repository.interface.ts +++ b/libs/dal/src/repositories/organization/organization-repository.interface.ts @@ -4,6 +4,7 @@ import { IPartnerConfiguration, OrganizationEntity } from './organization.entity export interface IOrganizationRepository extends IOrganizationRepositoryMongo { findById(id: string, select?: string): Promise; findUserActiveOrganizations(userId: string): Promise; + findUseActiveSessions(userId: string): Promise<[]>; updateBrandingDetails( organizationId: string, branding: { color: string; logo: string } diff --git a/libs/dal/src/repositories/organization/organization.repository.ts b/libs/dal/src/repositories/organization/organization.repository.ts index ba4955316c8..176cf741203 100644 --- a/libs/dal/src/repositories/organization/organization.repository.ts +++ b/libs/dal/src/repositories/organization/organization.repository.ts @@ -14,6 +14,10 @@ export class OrganizationRepository implements IOrganizationRepository { return this.organizationRepository.findUserActiveOrganizations(userId); } + findUseActiveSessions(userId: string): Promise<[]> { + return this.organizationRepository.findUseActiveSessions(userId); + } + updateBrandingDetails(organizationId: string, branding: { color: string; logo: string }) { return this.organizationRepository.updateBrandingDetails(organizationId, branding); }