From 883d13f8ae4665b91f6e64c746e1848ddc1a4312 Mon Sep 17 00:00:00 2001 From: Thiago Martins Date: Thu, 7 Jul 2022 17:30:29 -0300 Subject: [PATCH] refactor(): rename event payload symbol --- lib/index.ts | 2 +- tests/src/events-provider.request-scoped.consumer.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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;