diff --git a/src/pusher/metrics/brain-metrics.ts b/src/pusher/metrics/brain-metrics.ts index 0dc405e..1e27071 100644 --- a/src/pusher/metrics/brain-metrics.ts +++ b/src/pusher/metrics/brain-metrics.ts @@ -24,7 +24,7 @@ export class PusherBrainMetrics extends BrainMetrics { connections, })), started: this.connections.started.toISOString(), - ...this.metrics[namespace] || {}, + ...(this.metrics[namespace] || {}), }); this.snapshotInProgress = false;