Skip to content

Commit

Permalink
Merge pull request #93 from bcgov/extractfixes
Browse files Browse the repository at this point in the history
added back jsonexport
  • Loading branch information
shaunlumbcgov authored Nov 16, 2023
2 parents 2fe5a79 + 26b5cb2 commit e5034cc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
14 changes: 6 additions & 8 deletions backend/src/routes/district-router.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ async function getAllDistrictContacts(req, res) {
headers: { Authorization: `Bearer ${req.accessToken}` },
});
const propertyOrder = [
{ property: "displayName", label: "District Name" },
{ property: "districtNumber", label: "District Number" },
{ property: "displayName", label: "District Name" },
{ property: "districtContactTypeCode", label: "District Contact" },
{ property: "description", label: "Contact Description" },
{ property: "firstName", label: "Contact First Name" },
Expand Down Expand Up @@ -152,26 +152,24 @@ async function getAllDistrictMailing(req, res) {
const contactTypeCodes= await listCache.get("codesList")

const propertyOrder = [
{ property: "districtNumber", label: "District Number" },
{ property: "displayName", label: "District Name" },
{ property: "districtNumber", label: "districtNumber" },
{ property: "mailingAddressLine1", label: "Address Line 1" },
{ property: "mailingAddressLine2", label: "Address Line 2" },
{ property: "mailingCity", label: "City" },
{ property: "mailingPostal", label: "Postal" },
{ property: "mailingProvinceCode", label: "Province" },
{ property: "mailingPostal", label: "Postal Code" },
{ property: "mailingCountryCode", label: "Country" },

{ property: "physicalAddressLine1", label: "Courier Address Line 1" },
{ property: "physicalAddressLine2", label: "Courier Address Line 2" },
{ property: "physicalCity", label: "Courier City" },
{ property: "physicalPostal", label: "Courier Postal" },
{ property: "physicalProvinceCode", label: "Courier Province" },
{ property: "physicalPostal", label: "Courier Postal Code" },
{ property: "physicalCountryCode", label: "Courier Country" },
{ property: "districtRegionCode", label: "Courier Region" },
{ property: "website", label: "Web Address" },
{ property: "phoneNumber", label: "Phone" },
{ property: "faxNumber", label: "Fax" },
{ property: "email", label: "Email" },
{ property: "website", label: "Website" },


];

Expand Down
2 changes: 1 addition & 1 deletion backend/src/routes/download-router.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const log = require("../components/logger");
const config = require("../config/index");
const axios = require("axios");
const { checkToken } = require("../components/auth");
const jsonexport = require("jsonexport/dist")
const jsonExport = require('jsonexport');
const fs = require('fs');
const path = require('path');
const {isSafeFilePath} = require("../components/utils")
Expand Down

0 comments on commit e5034cc

Please sign in to comment.