ty snyk
build Details
--> Linted: CSS No errors were found in the linting process Details
--> Linted: DOCKERFILE_HADOLINT No errors were found in the linting process Details
--> Linted: EDITORCONFIG No errors were found in the linting process Details
--> Linted: GITHUB_ACTIONS No errors were found in the linting process Details
--> Linted: GITLEAKS No errors were found in the linting process Details
--> Linted: JSON No errors were found in the linting process Details
--> Linted: YAML No errors were found in the linting process Details
lint Details

This commit is contained in:
Chase 2023-07-04 18:10:06 -05:00
parent 9fc387b672
commit 77ed079d6b
Signed by: chase
GPG Key ID: 9EC29E797878008C
2 changed files with 24 additions and 1 deletions

View File

@ -117,7 +117,6 @@ function initializePassport(passport)
initializePassport(
passport,
(email) => email,
);
app.set(`views`, `./src/views`);

View File

@ -79,6 +79,10 @@ router.get(`/`, checkAuthenticated, async (request, response) =>
headers: {
Authorization: `Bearer ${ code }`,
},
}).catch((error) =>
{
console.log(error);
return response.redirect(`/error`);
}).then((response) => response.json());
if (artistsDataAllTime.error)
@ -92,6 +96,10 @@ router.get(`/`, checkAuthenticated, async (request, response) =>
headers: {
Authorization: `Bearer ${ code }`,
},
}).catch((error) =>
{
console.log(error);
return response.redirect(`/error`);
}).then((response) => response.json());
artistsDataSixMonthsNames = artistsDataSixMonths.items.map((item) => item.name);
@ -102,6 +110,10 @@ router.get(`/`, checkAuthenticated, async (request, response) =>
headers: {
Authorization: `Bearer ${ code }`,
},
}).catch((error) =>
{
console.log(error);
return response.redirect(`/error`);
}).then((response) => response.json());
artistsDataFourWeeksNames = artistsDataFourWeeks.items.map((item) => item.name);
@ -112,6 +124,10 @@ router.get(`/`, checkAuthenticated, async (request, response) =>
headers: {
Authorization: `Bearer ${ code }`,
},
}).catch((error) =>
{
console.log(error);
return response.redirect(`/error`);
}).then((response) => response.json());
trackDataAllTimeNames = trackDataAllTime.items.map((item) =>
@ -127,6 +143,10 @@ router.get(`/`, checkAuthenticated, async (request, response) =>
headers: {
Authorization: `Bearer ${ code }`,
},
}).catch((error) =>
{
console.log(error);
return response.redirect(`/error`);
}).then((response) => response.json());
trackDataSixMonthsNames = trackDataSixMonths.items.map((item) =>
@ -142,6 +162,10 @@ router.get(`/`, checkAuthenticated, async (request, response) =>
headers: {
Authorization: `Bearer ${ code }`,
},
}).catch((error) =>
{
console.log(error);
return response.redirect(`/error`);
}).then((response) => response.json());
trackDataFourWeeksNames = trackDataFourWeeks.items.map((item) =>