stuff
This commit is contained in:
Regular → Executable
+1
-1
@@ -10,4 +10,4 @@ export default class RateLimit extends BaseModel {
|
|||||||
|
|
||||||
@column.dateTime({ autoCreate: true, autoUpdate: true })
|
@column.dateTime({ autoCreate: true, autoUpdate: true })
|
||||||
declare updatedAt: DateTime
|
declare updatedAt: DateTime
|
||||||
}
|
}
|
||||||
|
|||||||
Regular → Executable
+1
-2
@@ -18,7 +18,7 @@ import { apiClient } from '@japa/api-client'
|
|||||||
|
|
||||||
configure({
|
configure({
|
||||||
files: ['tests/**/*.spec.js'],
|
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()
|
.testRunner()
|
||||||
.configure(async (app) => {
|
.configure(async (app) => {
|
||||||
const { runnerHooks, ...config } = await import('../tests/bootstrap.js')
|
const { runnerHooks, ...config } = await import('../tests/bootstrap.js')
|
||||||
|
|
||||||
processCLIArgs(process.argv.splice(2))
|
processCLIArgs(process.argv.splice(2))
|
||||||
configure({
|
configure({
|
||||||
...app.rcFile.tests,
|
...app.rcFile.tests,
|
||||||
|
|||||||
Regular → Executable
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
import limiter from '@adonisjs/limiter/services/main'
|
import limiter from '@adonisjs/limiter/services/main'
|
||||||
export const throttle = limiter.define('global', () => {
|
export const throttle = limiter.define('global', () => {
|
||||||
return limiter.allowRequests(15).every('1 minute').blockFor('5 mins')
|
return limiter.allowRequests(15).every('1 minute').blockFor('5 mins')
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user