Skip to content

Commit

Permalink
refactor(): rename event payload symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagomini committed Jul 7, 2022
1 parent 0934666 commit 883d13f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion 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';
4 changes: 2 additions & 2 deletions 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;
Expand Down

0 comments on commit 883d13f

Please sign in to comment.