Merge branch 'master' of github.com:lissy93/web-check into FEAT/astroify

This commit is contained in:
Alicia Sykes
2024-06-16 21:18:41 +01:00
8 changed files with 414 additions and 376 deletions

View File

@ -72,7 +72,11 @@ const portsHandler = async (url, event, context) => {
if(timeoutReached){
return errorResponse('The function timed out before completing.');
}
// Sort openPorts and failedPorts before returning
openPorts.sort((a, b) => a - b);
failedPorts.sort((a, b) => a - b);
return { openPorts, failedPorts };
};