Skip to content

Properties names in job are with underscores #106

@mik7up

Description

@mik7up

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions