Rocketseat / adonis-bull

The easiest way to start using an asynchronous job queue with AdonisJS. Ready for Adonis v5 ⚡️
MIT License
308 stars 57 forks source link

Properties names in job are with underscores #106

Open mik7up opened 2 years ago

mik7up commented 2 years ago

Use job

user =  {
    firstName: 'test',
    lastName: 'test',
}
Bull.add(new UserRegisterEmail().key, user)

But data properties names in job are with underscores:

  data: {
    first_name: 'test',
    last_name: 'test',
  }

When:

await new UserRegister(data).sendLater()

In UserRegister extends BaseMailer I will access use.first name and not user.firstName!?