Updated parameters passed to for certificate check

This commit is contained in:
Alex Holliday committed 2024-08-14 19:02:11 -07:00
1 parent 0e3da7e17e
commit aa528722e1
3 files changed
+2 -3

No files matched your search

+2 -1
View File
@@ -77,7 +77,8 @@ const getMonitorCertificate = async (req, res, next) => {
}
try {
const monitor = await req.db.getMonitorById(req, res);
const { monitorId } = req.params;
const monitor = await req.db.getMonitorById(monitorId);
const monitorUrl = new URL(monitor.url);
const certificate = await sslChecker(monitorUrl.hostname);
if (certificate && certificate.validTo) {