diff --git a/src/errorReporting.js b/src/errorReporting.js index a1cdbc7..4006aa8 100644 --- a/src/errorReporting.js +++ b/src/errorReporting.js @@ -52,8 +52,8 @@ function reportError(error, context = {}) { gitea_repo: meta.gitea_repo, component: context.component || 'worker', environment: process.env.NODE_ENV || 'production', - error_type: (error && error.name) || 'Error', - }, + error_type: (error && error.name) || 'Error' + } }; const url = `${ingestBase()}${INGEST_PATH}`; @@ -62,9 +62,9 @@ function reportError(error, context = {}) { headers: { 'Content-Type': 'application/json', Authorization: `Bearer ${token}`, - 'X-Api-Key': token, + 'X-Api-Key': token }, - body: JSON.stringify({ events: [event] }), + body: JSON.stringify({ events: [event] }) }).catch(() => { // Never let reporting failures affect the app. });