From 5fe0b9412374ebc7796fb4a8af9559d71175c47e Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Tue, 26 Apr 2022 16:42:48 -0500 Subject: [PATCH] Overwrite existing api endpoints --- build-lists.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/build-lists.js b/build-lists.js index cc9b4b0..542fb49 100644 --- a/build-lists.js +++ b/build-lists.js @@ -222,12 +222,7 @@ class BuildLists { const endpointPath = `./static/api${endpoint}.json` const endpointDirectory = dirname(endpointPath) - // Stop if the endpoint is already exists - if (fs.existsSync(endpointPath)) { - console.log(`Path "${endpointPath}" already exists`) - - return - } + // console.log(`Saving endpoint "${endpoint}" to "${endpointPath}"`)