Skip to content

Commit

Permalink
#38: update etl package
Browse files Browse the repository at this point in the history
  • Loading branch information
mohit-s96 committed Oct 4, 2023
1 parent a6793e0 commit 659d00a
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 16 deletions.
3 changes: 2 additions & 1 deletion lib/restore-utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const {
} = require('../misc/data-access/cert-api-client');
const { isValidUrl, fetchSystemData } = require('../../common');

const { processLookupResourceMetadataFiles } = require('reso-certification-etl');
const { processLookupResourceMetadataFiles } = require('@reso/reso-certification-etl');

const CERTIFICATION_RESULTS_DIRECTORY = 'current',
PATH_DATA_SEPARATOR = '-';
Expand Down Expand Up @@ -205,6 +205,7 @@ const restore = async (options = {}) => {
let id, pathToMetadataReport;
try {
if (BACKUP_CERTIFICATION_FILES[result]) {
if (result !== DATA_AVAILABILITY_REPORT_JSON) continue;
pathToMetadataReport = resolve(join(currentResultsPath, result));
const metadataReport = JSON.parse(await readFile(pathToMetadataReport, 'utf8'));
// eslint-disable-next-line prefer-destructuring
Expand Down
2 changes: 1 addition & 1 deletion lib/transform/transformations/runEtl.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const {
processDataAvailability: { processDataAvailability }
} = require('reso-certification-etl');
} = require('@reso/reso-certification-etl');
const runEtlOnReport = async data => {
try {
// recover the raw availability report
Expand Down
23 changes: 10 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
},
"homepage": "https://github.com/RESOStandards/reso-certification-utils#readme",
"dependencies": {
"@reso/reso-certification-etl": "github:RESOStandards/reso-certification-etl",
"aws-sdk": "^2.1354.0",
"axios": "^0.24.0",
"boxen": "^6.2.1",
Expand All @@ -32,7 +33,6 @@
"dotenv": "^16.0.1",
"fs-extra": "^10.0.0",
"mocha": "^9.1.3",
"reso-certification-etl": "github:RESOStandards/reso-certification-etl",
"yargs": "^16.2.0"
},
"devDependencies": {
Expand Down

0 comments on commit 659d00a

Please sign in to comment.