diff --git a/api/event.js b/api/event.js index 3573921e..4ded8cb7 100644 --- a/api/event.js +++ b/api/event.js @@ -23,7 +23,7 @@ export default async (request, context) => { const idVal = await ids.get(id) url = setUrl(idVal, `[noscript visit] ID: ${idVal}`) } else { - url = setUrl(num, `[Blocked visit] ID: ${num}`) + url = setUrl(num, `[Blocked visit] ID: ${num || 'unknown'}`) } fetch(url, { headers })