summary refs log tree commit diff
path: root/src/cdn/routes/attachments.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/cdn/routes/attachments.ts')
-rw-r--r--src/cdn/routes/attachments.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cdn/routes/attachments.ts b/src/cdn/routes/attachments.ts
index ae50bc48..2a1b6f09 100644
--- a/src/cdn/routes/attachments.ts
+++ b/src/cdn/routes/attachments.ts
@@ -56,7 +56,7 @@ router.post(
 		};
 
 		return res.json(file);
-	}
+	},
 );
 
 router.get(
@@ -65,7 +65,7 @@ router.get(
 		const { channel_id, id, filename } = req.params;
 
 		const file = await storage.get(
-			`attachments/${channel_id}/${id}/${filename}`
+			`attachments/${channel_id}/${id}/${filename}`,
 		);
 		if (!file) throw new HTTPError("File not found");
 		const type = await FileType.fromBuffer(file);
@@ -79,7 +79,7 @@ router.get(
 		res.set("Cache-Control", "public, max-age=31536000");
 
 		return res.send(file);
-	}
+	},
 );
 
 router.delete(
@@ -94,7 +94,7 @@ router.delete(
 		await storage.delete(path);
 
 		return res.send({ success: true });
-	}
+	},
 );
 
 export default router;