This commit is contained in:
Kiss Dávid
2026-03-21 12:34:29 +01:00
parent 9efbe5baee
commit 1ebb2e53a9
3 changed files with 3 additions and 4 deletions
Regular → Executable
+1 -1
View File
@@ -10,4 +10,4 @@ export default class RateLimit extends BaseModel {
@column.dateTime({ autoCreate: true, autoUpdate: true })
declare updatedAt: DateTime
}
}
Regular → Executable
+1 -2
View File
@@ -18,7 +18,7 @@ import { apiClient } from '@japa/api-client'
configure({
files: ['tests/**/*.spec.js'],
plugins: [apiClient('https://localhost:3333')]
plugins: [apiClient('https://localhost:3333')],
})
/**
@@ -49,7 +49,6 @@ new Ignitor(APP_ROOT, { importer: IMPORTER })
.testRunner()
.configure(async (app) => {
const { runnerHooks, ...config } = await import('../tests/bootstrap.js')
processCLIArgs(process.argv.splice(2))
configure({
...app.rcFile.tests,
Regular → Executable
+1 -1
View File
@@ -1,4 +1,4 @@
import limiter from '@adonisjs/limiter/services/main'
export const throttle = limiter.define('global', () => {
return limiter.allowRequests(15).every('1 minute').blockFor('5 mins')
})
})