Skip to content

Wrong filename and class name when creating an email class with ace. #34

@gribbl

Description

@gribbl

Package version

9.2.1

Describe the bug

When using the node ace make:mail verify_email command, the file generated is as follows:

app
└── mails
    ├── ...
    └── verify_e_notification.ts

And the class name :

import { BaseMail } from '@adonisjs/mail'

export default class VerifyENotification extends BaseMail {
  // ...
}

The mailName generator deletes mail and mailer. Is this intentional?

Reproduction repo

No response

Metadata

Metadata

Assignees

Labels

Type: BugThe issue has indentified a bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions