Skip to content

Commit

Permalink
Change name of function to stop overriding process global variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mishraomp authored Oct 18, 2023
1 parent d810d69 commit 4d4c163
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utilities/remove-deleted-pubcode/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const API_URL = process.env.API_URL;
const pubcodeURL = process.env.PUBCODE_URL || "https://pubcode-api.apps.silver.devops.gov.bc.ca/api/pub-code";
// Set the URL for the secondary API call

async function process() {
async function doProcess() {
try {
// Perform the initial HTTP GET request
const pubCodeResponse = await axios.get(pubcodeURL);
Expand Down Expand Up @@ -72,7 +72,7 @@ async function bulkLoadPubCodes(yamlArrayAsJson) {
}
}
try{
await process();
await doProcess();
}catch (e) {
console.error(e);
process.exit(1);
Expand Down

0 comments on commit 4d4c163

Please sign in to comment.