update imports for fosscord-server-util
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { NextFunction, Request, Response } from "express";
|
||||
import { HTTPError } from "lambert-server";
|
||||
import { checkToken } from "discord-server-util";
|
||||
import { checkToken } from "fosscord-server-util";
|
||||
|
||||
export const NO_AUTHORIZATION_ROUTES = ["/api/v8/auth/login", "/api/v8/auth/register"];
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { NextFunction, Request, Response } from "express";
|
||||
import Config from "../util/Config";
|
||||
import { db } from "discord-server-util";
|
||||
import { db } from "fosscord-server-util";
|
||||
|
||||
export async function GlobalRateLimit(req: Request, res: Response, next: NextFunction) {
|
||||
if (!Config.get().limits.rate.ip.enabled) return next();
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { NextFunction, Request, Response } from "express";
|
||||
import { db } from "discord-server-util";
|
||||
import { db } from "fosscord-server-util";
|
||||
|
||||
import { getIpAdress } from "./GlobalRateLimit";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user