Updated parameters passed to for certificate check
This commit is contained in:
1 parent
0e3da7e17e
commit
aa528722e1
3 files changed
+2
-3
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user