From 5fcb75ce2db845f38ebead76dc204d8420ae443c Mon Sep 17 00:00:00 2001 From: mgtennant <100305096+mgtennant@users.noreply.github.com> Date: Wed, 31 Jul 2024 11:45:28 -0700 Subject: [PATCH] Update report.service.ts --- backend/src/report/report.service.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/backend/src/report/report.service.ts b/backend/src/report/report.service.ts index b16961bc..317c60f6 100644 --- a/backend/src/report/report.service.ts +++ b/backend/src/report/report.service.ts @@ -84,9 +84,15 @@ export class ReportService { // For now, hardcode this to call the different static report routes based on document type const documentType = await this.documentTypeService.findById(document_type_id); if (documentType) { - if (documentType.name.toLowerCase().includes('notice of final review')) { + if ( + documentType.name.toLowerCase().includes('notice of final review') || + documentType.name.toLowerCase().includes('nfr') + ) { return this.generateNFRReport(dtid, document_type_id, idirUsername, idirName, variableJson, provisionJson); - } else if (documentType.name.toLowerCase().includes('land use')) { + } else if ( + documentType.name.toLowerCase().includes('land use') || + documentType.name.toLowerCase().includes('lur') + ) { return this.generateLURReport(dtid, idirUsername, document_type_id); } else if (documentType.name.toLowerCase().includes('grazing')) { return this.generateGLReport(dtid, idirUsername, document_type_id);