Skip to content
This repository was archived by the owner on Aug 30, 2021. It is now read-only.
This repository was archived by the owner on Aug 30, 2021. It is now read-only.

Arguments in middlewares #3

Description

@HigoRibeiro

Hi,
Today I created a middleware for testing and I passed as a simple conditional argument to be tested with the acler library, but before testing on a simple console.log I realized that my arguments were not coming as expected, I called the middleware 'meu' and I passed the following arguments (administrator || moderator).
meu:(administrator || moderator)

As a direct result that comes from the parameters I had an array ['(administrator']

Apparently this occurs due to the haye library parsing.

Is there a way to solve this?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions