Skip to content

Commit

Permalink
refactor: limiter stub
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Feb 7, 2024
1 parent d81344a commit 00601fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stubs/start/limiter.stub
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@

import limiter from '@adonisjs/limiter/services/main'

export const throttle = limiter.define('global', (ctx) => {
return limiter.allowRequests(100).every('1 minute')
export const throttle = limiter.define('global', () => {
return limiter.allowRequests(10).every('1 minute')
})

0 comments on commit 00601fe

Please sign in to comment.