Forgot to call longAndStoreCheck (#454)

This commit is contained in:
Alexander Holliday authored and GitHub committed 2024-07-25 23:10:30 -07:00
1 parent a33750849a
commit 4a5c201cbf
1 file changed
+4 -4
+4 -4
View File
@@ -107,7 +107,7 @@ class NetworkService {
} }
} }
/** /**
* Handles PageSpeed job types by fetching and processing PageSpeed insights. * Handles PageSpeed job types by fetching and processing PageSpeed insights.
* *
* This method sends a request to the Google PageSpeed Insights API to get performance metrics * This method sends a request to the Google PageSpeed Insights API to get performance metrics
@@ -121,7 +121,7 @@ class NetworkService {
* *
* @throws {Error} Throws an error if there is an issue with fetching or processing the PageSpeed insights. * @throws {Error} Throws an error if there is an issue with fetching or processing the PageSpeed insights.
*/ */
async handlePagespeed(job) { async handlePagespeed(job) {
try { try {
const url = job.data.url; const url = job.data.url;
const response = await axios.get( const response = await axios.get(
@@ -147,9 +147,9 @@ async handlePagespeed(job) {
seo: 0, seo: 0,
performance: 0, performance: 0,
}; };
this.logAndStoreCheck(checkData, this.db.createPageSpeedCheck);
}
} }
}
/** /**
* Retrieves the status of a given job based on its type. * Retrieves the status of a given job based on its type.