Skip to content

Commit

Permalink
feat: update crawler version
Browse files Browse the repository at this point in the history
  • Loading branch information
simone-amadio-acn committed Oct 16, 2024
1 parent fb85aa4 commit 779337d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion command/scanManagerItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const scan = async (jobId) => {
urlToBeScanned,
jobObjParsed.type,
"online",
'',
'silent',
false,
"",
"",
Expand Down
8 changes: 4 additions & 4 deletions controller/auditController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,19 +281,19 @@ const getPerformanceScore = async (jsonResult) => {
return 0;
}

if (!("categories" in jsonResult)) {
if (!("audits" in jsonResult)) {
return 0;
}

if (!("performance" in jsonResult.categories)) {
if (!("lighthouse" in jsonResult.audits)) {
return 0;
}

if (!("score" in jsonResult.categories.performance)) {
if (!("score" in jsonResult.audits.lighthouse)) {
return 0;
}

return jsonResult.categories.performance.score;
return jsonResult.audits.lighthouse.score;
};

const getImprovementPlanScore = async (jsonResult) => {
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "crawler-handler",
"version": "3.0.1",
"version": "3.0.2",
"description": "Handler per il validatore di comuni e scuole",
"main": "index.js",
"type": "module",
Expand Down Expand Up @@ -42,7 +42,7 @@
"mysql2": "^2.3.3",
"nodemon": "^2.0.16",
"npm-run-all": "^4.1.5",
"pa-website-validator-ng": "github:italia/pa-website-validator-ng#test-0.0.2",
"pa-website-validator-ng": "github:italia/pa-website-validator-ng#test-0.0.3",
"pg": "^8.7.3",
"ps-list": "^8.1.1",
"redis": "^4.1.0",
Expand Down

0 comments on commit 779337d

Please sign in to comment.