From 279ec10081f245f4d5bbca8b63485c841f619e35 Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Tue, 19 Jul 2022 07:21:26 +0200 Subject: State update, havent tested --- cdn/src/routes/attachments.ts | 2 +- cdn/src/routes/avatars.ts | 2 +- cdn/src/routes/external.ts | 5 ++--- cdn/src/routes/role-icons.ts | 2 +- 4 files changed, 5 insertions(+), 6 deletions(-) (limited to 'cdn/src/routes') diff --git a/cdn/src/routes/attachments.ts b/cdn/src/routes/attachments.ts index 2aed752e..3e04fe76 100644 --- a/cdn/src/routes/attachments.ts +++ b/cdn/src/routes/attachments.ts @@ -2,7 +2,7 @@ import { Router, Response, Request } from "express"; import { Config, Snowflake } from "@fosscord/util"; import { storage } from "../util/Storage"; import FileType from "file-type"; -import { HTTPError } from "lambert-server"; +import { HTTPError } from "@fosscord/util"; import { multer } from "../util/multer"; import imageSize from "image-size"; diff --git a/cdn/src/routes/avatars.ts b/cdn/src/routes/avatars.ts index 3b521cc3..bbdf42cc 100644 --- a/cdn/src/routes/avatars.ts +++ b/cdn/src/routes/avatars.ts @@ -2,7 +2,7 @@ import { Router, Response, Request } from "express"; import { Config, Snowflake } from "@fosscord/util"; import { storage } from "../util/Storage"; import FileType from "file-type"; -import { HTTPError } from "lambert-server"; +import { HTTPError } from "@fosscord/util"; import crypto from "crypto"; import { multer } from "../util/multer"; diff --git a/cdn/src/routes/external.ts b/cdn/src/routes/external.ts index ed44c905..cf02f645 100644 --- a/cdn/src/routes/external.ts +++ b/cdn/src/routes/external.ts @@ -1,10 +1,9 @@ import { Router, Response, Request } from "express"; import fetch from "node-fetch"; -import { HTTPError } from "lambert-server"; -import { Snowflake } from "@fosscord/util"; +import { HTTPError } from "@fosscord/util"; +import { Snowflake, Config } from "@fosscord/util"; import { storage } from "../util/Storage"; import FileType from "file-type"; -import { Config } from "@fosscord/util"; // TODO: somehow handle the deletion of images posted to the /external route diff --git a/cdn/src/routes/role-icons.ts b/cdn/src/routes/role-icons.ts index a850db88..dd96c90e 100644 --- a/cdn/src/routes/role-icons.ts +++ b/cdn/src/routes/role-icons.ts @@ -2,7 +2,7 @@ import { Router, Response, Request } from "express"; import { Config, Snowflake } from "@fosscord/util"; import { storage } from "../util/Storage"; import FileType from "file-type"; -import { HTTPError } from "lambert-server"; +import { HTTPError } from "@fosscord/util"; import crypto from "crypto"; import { multer } from "../util/multer"; -- cgit 1.5.1