import { Injectable , Scope } from '@nestjs/common' ; import { OrganizationRepository } from '@notifire/dal' ; import { GetOrganizationCommand } from './get-organization.command' ; @ Injectable ( { scope : Scope . REQUEST , } ) export class GetOrganization { constructor ( private readonly organizationRepository ) { } async execute ( command ) { const organization = await this . organizationRepository . findById ( command . id ) ; return organization ; } }