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
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:
parent
9fc387b672
commit
77ed079d6b
|
@ -117,7 +117,6 @@ function initializePassport(passport)
|
|||
|
||||
initializePassport(
|
||||
passport,
|
||||
(email) => email,
|
||||
);
|
||||
|
||||
app.set(`views`, `./src/views`);
|
||||
|
|
|
@ -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) =>
|
||||
|
|
Reference in New Issue