From 12a8487732cf02a8cd0658177526dc6fed708a1f Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Wed, 6 Jul 2022 13:36:29 +0100 Subject: [PATCH] Adding null parameter so that TS doesn't build with strict requirement. --- packages/backend-core/src/logging.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend-core/src/logging.js b/packages/backend-core/src/logging.js index 6ab5bff44a..425d7f8133 100644 --- a/packages/backend-core/src/logging.js +++ b/packages/backend-core/src/logging.js @@ -4,7 +4,7 @@ function isSuppressed(e) { return e && e["suppressAlert"] } -module.exports.logAlert = (message, e) => { +module.exports.logAlert = (message, e = null) => { if (e && NonErrors.includes(e.name) && isSuppressed(e)) { return }