From cfb442324c1eab0f2407a9860ebbfcd10a4afb22 Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Tue, 10 May 2022 12:18:55 -0500 Subject: [PATCH] Check if toml is file --- helpers/api/static.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/helpers/api/static.js b/helpers/api/static.js index 5c332e4..86a3734 100644 --- a/helpers/api/static.js +++ b/helpers/api/static.js @@ -14,11 +14,6 @@ export async function downloadStorkToml () { apiUrl.pathname = storkTomlPath.replace('/static', '') - console.log('apiUrl', apiUrl) - - // await axios( apiUrl.toString() ) - - const response = await axios({ method: "get", url: apiUrl.toString(), @@ -28,6 +23,6 @@ export async function downloadStorkToml () { // Get toml file stats const stats = await fs.stat( storkTomlPath ) - console.log('TOML Stats', storkTomlPath, stats) + console.log('TOML is file', storkTomlPath, stats.isFile()) // console.log('TOML Stats', stats) }