import { Injectable } from '@nestjs/common' ; import { ApplicationRepository } from '@notifire/dal' ; import { GetApplicationCommand } from './get-application.command' ; @ Injectable ( ) export class GetApplication { constructor ( private applicationRepository ) { } async execute ( command ) { return await this . applicationRepository . findOne ( { _id : command . applicationId , _organizationId : command . organizationId , } , '-apiKeys' ) ; } }