mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-13 23:17:02 +03:00
fix non-format eslint in src/
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import {getIP} from '../utils/getIP';
|
||||
import {getHash} from '../utils/getHash';
|
||||
import rateLimit from 'express-rate-limit';
|
||||
import {RateLimitConfig} from '../types/config.model';
|
||||
import {Request} from 'express';
|
||||
import { isUserVIP } from '../utils/isUserVIP';
|
||||
import { UserID } from '../types/user.model';
|
||||
import {getIP} from "../utils/getIP";
|
||||
import {getHash} from "../utils/getHash";
|
||||
import rateLimit from "express-rate-limit";
|
||||
import {RateLimitConfig} from "../types/config.model";
|
||||
import {Request} from "express";
|
||||
import { isUserVIP } from "../utils/isUserVIP";
|
||||
import { UserID } from "../types/user.model";
|
||||
|
||||
export function rateLimitMiddleware(limitConfig: RateLimitConfig, getUserID?: (req: Request) => UserID): rateLimit.RateLimit {
|
||||
return rateLimit({
|
||||
|
||||
Reference in New Issue
Block a user