Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run await in listener method #1

Open
tidusvn05 opened this issue Nov 7, 2021 · 0 comments
Open

Cannot run await in listener method #1

tidusvn05 opened this issue Nov 7, 2021 · 0 comments

Comments

@tidusvn05
Copy link

I cannot using async/await on listener function

@ListensTo('USER_SIGNED_UP')
async  userSignedUp(event: UserSignedUp): void {
    console.log('EVENT RECEIVED ===>', event);
    // add your logic here

   await this.repo.create({name: 'aaaa'})
    return;
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant