mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
fix path bugs
This commit is contained in:
1 parent
af2f1ef707
commit
bda68ad293
1 file changed
+1
-1
@@ -3,7 +3,7 @@ import type { Options } from 'express-rate-limit'
|
|||||||
import type { Request, Response, NextFunction } from 'express'
|
import type { Request, Response, NextFunction } from 'express'
|
||||||
import config from '../config.js'
|
import config from '../config.js'
|
||||||
import { recordLogin } from './recordLogin.js'
|
import { recordLogin } from './recordLogin.js'
|
||||||
import { LoginAttempt } from '@linux-odyssey/models'
|
import { LoginAttempt } from '../../../packages/models'
|
||||||
|
|
||||||
function createRateLimiter(options: Partial<Options>) {
|
function createRateLimiter(options: Partial<Options>) {
|
||||||
if (config.testing.enabled) {
|
if (config.testing.enabled) {
|
||||||
|
|||||||
Reference in new issue
Block a user