We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42bf5ba commit 9df2e34Copy full SHA for 9df2e34
packages/nestjs/src/integrations/sentry-nest-event-instrumentation.ts
@@ -85,7 +85,7 @@ export class SentryNestEventInstrumentation extends InstrumentationBase {
85
// from the reflector metadata as there is no information during execution which event triggered it
86
if (Reflect.getMetadataKeys(descriptor.value).includes('EVENT_LISTENER_METADATA')) {
87
const eventData = Reflect.getMetadata('EVENT_LISTENER_METADATA', descriptor.value);
88
- if (Array.isArray(eventData) && eventData.length > 0) {
+ if (Array.isArray(eventData)) {
89
eventName = eventData
90
.map((data: unknown) => {
91
if (data && typeof data === 'object' && 'event' in data && data.event) {
0 commit comments