Skip to content

Commit

Permalink
Merge pull request #223 from bcgov/adjust-nfr-detection
Browse files Browse the repository at this point in the history
adjust nfr detection
  • Loading branch information
mgtennant committed Jul 31, 2024
2 parents eafbbce + 5fcb75c commit 8098187
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions backend/src/report/report.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8098187

Please sign in to comment.