Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: added option to customize the key of the object response #48

Merged
merged 3 commits into from
Aug 26, 2022

Conversation

jRexhmati
Copy link
Contributor

No description provided.

README.md Outdated
@@ -65,7 +65,8 @@ const createAccountLimiter = RateLimit.middleware({
timeWait: 3*1000, // slow down subsequent responses by 3 seconds per request
max: 5, // start blocking after 5 requests
prefixKey: 'post/user', // to allow the bdd to Differentiate the endpoint
message: "Too many accounts created from this IP, please try again after an hour"
message: "Too many accounts created from this IP, please try again after an hour",
messageKey: "error"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe set it as message since it is the default behaviour

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah makes sense, updated!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool!

Is this urgent for you? If it is, I can release it asap otherwise I'll just wait the resolution of #47 and make a release with both changes

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's ok, np

@julienwilmet julienwilmet merged commit df881bd into ysocorp:develop Aug 26, 2022
@julienwilmet
Copy link
Contributor

live in v1.1.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants