pre-commit run
This commit is contained in:
parent
dcab06061e
commit
e8a763b2a9
@ -25,11 +25,13 @@ export default async function handler(req, res) {
|
||||
});
|
||||
}
|
||||
let monitorURL = siteMonitor;
|
||||
|
||||
|
||||
if (siteMonitor === true) {
|
||||
// if monitor is set to "true", use the href as the monitor target
|
||||
if (!href) {
|
||||
logger.error(`Monitoring requestd for service '${service}' but no url specified.\n\tEither set monitor to a url or set href`);
|
||||
logger.error(
|
||||
`Monitoring requestd for service '${service}' but no url specified.\n\tEither set monitor to a url or set href`,
|
||||
);
|
||||
return res.status(400).send({
|
||||
error: "No url specified for monitor, see logs.",
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user