From 358b78cf91ccbcbdf96ebf5d4ccad65241c4ee51 Mon Sep 17 00:00:00 2001 From: chavda-bhavik Date: Fri, 27 Jan 2023 11:30:16 +0530 Subject: [PATCH] fix: All templates for all projects are coming for any projectId --- .../template/usecases/get-templates/get-templates.usecase.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/api/src/app/template/usecases/get-templates/get-templates.usecase.ts b/apps/api/src/app/template/usecases/get-templates/get-templates.usecase.ts index 5589f1bbe..4e0cba7d5 100644 --- a/apps/api/src/app/template/usecases/get-templates/get-templates.usecase.ts +++ b/apps/api/src/app/template/usecases/get-templates/get-templates.usecase.ts @@ -6,8 +6,8 @@ import { TemplateResponseDto } from '../../dtos/template-response.dto'; export class GetTemplates { constructor(private templateRepository: TemplateRepository) {} - async execute(projectId: string): Promise { - const templates = await this.templateRepository.find({ projectId }); + async execute(_projectId: string): Promise { + const templates = await this.templateRepository.find({ _projectId }); return templates.map((template) => ({ _projectId: template._projectId,