summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-09 11:21:06 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-09 11:21:06 +0200
commit4cd6207e5f54921b51d05af932f05afa6aec7226 (patch)
treefd2dcd70f2b3318a7cb7cbaac48467d340887765
parent:bug: fix import (diff)
downloadserver-4cd6207e5f54921b51d05af932f05afa6aec7226.tar.xz
:bug: fix cdn
-rw-r--r--bundle/scripts/build.js1
-rw-r--r--cdn/src/routes/attachments.ts4
-rw-r--r--cdn/src/routes/avatars.ts2
-rw-r--r--cdn/src/routes/external.ts2
-rw-r--r--gateway/src/events/Message.ts2
5 files changed, 5 insertions, 6 deletions
diff --git a/bundle/scripts/build.js b/bundle/scripts/build.js
index c6a98b80..05cf37ce 100644
--- a/bundle/scripts/build.js
+++ b/bundle/scripts/build.js
@@ -37,7 +37,6 @@ function transpileFiles() {
 		const files = walk(path.join(__dirname, "..", "..", part, "dist"));
 		for (const file of files) {
 			let content = fs.readFileSync(file, { encoding: "utf8" });
-			console.log(file);
 			content = content
 				.replace(
 					new RegExp(`@fosscord/${part}`),
diff --git a/cdn/src/routes/attachments.ts b/cdn/src/routes/attachments.ts
index 354bdde9..ae50bc48 100644
--- a/cdn/src/routes/attachments.ts
+++ b/cdn/src/routes/attachments.ts
@@ -1,9 +1,9 @@
 import { Router, Response, Request } from "express";
 import { Config, Snowflake } from "@fosscord/util";
-import { storage } from "@fosscord/cdn";
+import { storage } from "../util/Storage";
 import FileType from "file-type";
 import { HTTPError } from "lambert-server";
-import { multer } from "@fosscord/cdn";
+import { multer } from "../util/multer";
 import imageSize from "image-size";
 
 const router = Router();
diff --git a/cdn/src/routes/avatars.ts b/cdn/src/routes/avatars.ts
index 981cc417..3d5e7d77 100644
--- a/cdn/src/routes/avatars.ts
+++ b/cdn/src/routes/avatars.ts
@@ -1,6 +1,6 @@
 import { Router, Response, Request } from "express";
 import { Config, Snowflake } from "@fosscord/util";
-import { storage } from "@fosscord/cdn";
+import { storage } from "../util/Storage";
 import FileType from "file-type";
 import { HTTPError } from "lambert-server";
 import crypto from "crypto";
diff --git a/cdn/src/routes/external.ts b/cdn/src/routes/external.ts
index 50014600..dc90e3c8 100644
--- a/cdn/src/routes/external.ts
+++ b/cdn/src/routes/external.ts
@@ -2,7 +2,7 @@ import { Router, Response, Request } from "express";
 import fetch from "node-fetch";
 import { HTTPError } from "lambert-server";
 import { Snowflake } from "@fosscord/util";
-import { storage } from "@fosscord/cdn";
+import { storage } from "../util/Storage";
 import FileType from "file-type";
 import { Config } from "@fosscord/util";
 
diff --git a/gateway/src/events/Message.ts b/gateway/src/events/Message.ts
index 3648931d..af318bfd 100644
--- a/gateway/src/events/Message.ts
+++ b/gateway/src/events/Message.ts
@@ -5,7 +5,7 @@ try {
 	erlpack = require("@yukikaze-bot/erlpack");
 } catch (error) {}
 import OPCodeHandlers from "../opcodes";
-import { instanceOf, Tuple } from "lambert-server";
+import { Tuple } from "lambert-server";
 import { check } from "../opcodes/instanceOf";
 import WS from "ws";