diff --git a/lib/index.ts b/lib/index.ts index c4bd795c..d46ed19f 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -1,4 +1,4 @@ export { EventEmitter2 } from 'eventemitter2'; export * from './decorators'; export * from './event-emitter.module'; -export { EVENT_PAYLOAD as EVENT_REF } from './constants'; +export { EVENT_PAYLOAD } from './constants'; diff --git a/tests/src/events-provider.request-scoped.consumer.ts b/tests/src/events-provider.request-scoped.consumer.ts index 9a4c8053..59765211 100644 --- a/tests/src/events-provider.request-scoped.consumer.ts +++ b/tests/src/events-provider.request-scoped.consumer.ts @@ -1,10 +1,10 @@ import { Inject, Injectable } from '@nestjs/common'; import { OnEvent } from '../../lib'; -import { EVENT_REF } from '../../lib'; +import { EVENT_PAYLOAD } from '../../lib'; @Injectable() export class EventsProviderRequestScopedConsumer { - constructor(@Inject(EVENT_REF) public eventRef: any) { + constructor(@Inject(EVENT_PAYLOAD) public eventRef: any) { if (Array.isArray(this.eventRef)) { EventsProviderRequestScopedConsumer.injectedEventMultiPayload = this.eventRef;