From 5d284e3ac9c02c547bb66dd6c71a265adbf4fd4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivar=20Conradi=20=C3=98sthus?= Date: Fri, 26 Mar 2021 13:57:01 +0100 Subject: [PATCH] fix: ensure createdBy is not empty --- src/lib/services/client-metrics/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/services/client-metrics/index.js b/src/lib/services/client-metrics/index.js index 4919210ee4..8416c6a887 100644 --- a/src/lib/services/client-metrics/index.js +++ b/src/lib/services/client-metrics/index.js @@ -91,7 +91,7 @@ module.exports = class ClientMetricsService { const events = appsToAnnounce.map(app => { return { type: APPLICATION_CREATED, - createdBy: app.createdBy, + createdBy: app.createdBy || 'unknown', data: app, }; });