summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-05-28 12:22:19 +0200
committerGitHub <noreply@github.com>2021-05-28 12:22:19 +0200
commit9352b965d8da7bce39d475f248b7e0f9259f01d4 (patch)
tree63ba22f104e8123e9ecf368b5d2ca6527e8de302
parent:construction: file storage (diff)
downloadserver-9352b965d8da7bce39d475f248b7e0f9259f01d4.tar.xz
Update attachments.ts
-rw-r--r--src/routes/attachments.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/routes/attachments.ts b/src/routes/attachments.ts
index fb0f0c32..730d2bb1 100644
--- a/src/routes/attachments.ts
+++ b/src/routes/attachments.ts
@@ -17,7 +17,7 @@ router.post("/:channel_id", multer_.single("attachment"), async (req, res) => {
 	const { buffer, mimetype, stream, size, originalname, fieldname } = req.file;
 	const { channel_id } = req.params;
 	const filename = originalname.replaceAll(" ", "_").replace(/\W+/g, "");
-	t;
+	
 	const endpoint = Config.get().cdn.endpoint || "http://localhost:3003";
 
 	await storage.set(originalname, buffer);