update imports for fosscord-server-util

This commit is contained in:
Flam3rboy
2021-02-10 14:16:30 +01:00
parent d8a5084255
commit a283d70b83
7 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -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 -1
View File
@@ -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 -1
View File
@@ -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";