import { Injectable , NotFoundException , Scope } from '@nestjs/common' ; import { OrganizationRepository , MemberRepository } from '@notifire/dal' ; import { GetMembersCommand } from './get-members.command' ; @ Injectable ( { scope : Scope . REQUEST , } ) export class GetMembers { constructor ( private organizationRepository , private membersRepository ) { } async execute ( command ) { return await this . membersRepository . getOrganizationMembers ( command . organizationId ) ; } }