summary refs log tree commit diff
path: root/src/cdn/routes/attachments.ts
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-09-26 22:29:30 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-09-26 22:41:21 +1000
commit99ee7e9400f06e8718612d8b52d15215dc620774 (patch)
tree08de8c5d3985b9c2eaa419f5198f891ecd82d012 /src/cdn/routes/attachments.ts
parentRemove the cdn storage location log (diff)
downloadserver-99ee7e9400f06e8718612d8b52d15215dc620774.tar.xz
Prettier
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;