import { Injectable } from '@nestjs/common'; import { InjectRepository } from '@nestjs/typeorm'; import { BaseEntity, Repository } from 'typeorm'; import { AppMaster } from '../entity/app-master.entity'; @Injectable() export class AppMasterRespository { constructor( @InjectRepository(AppMaster) private readonly AppMasterRespository: Repository, ) {} async getAppMasterDataByAppCode( appCode: string, ): Promise { return await this.AppMasterRespository.find({ where: { appcode: appCode }, }); } }