adonis-bull icon indicating copy to clipboard operation
adonis-bull copied to clipboard

Properties names in job are with underscores

Open mik7up opened this issue 4 years ago • 0 comments

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!?

mik7up avatar Feb 18 '22 13:02 mik7up