diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-09-26 22:29:30 +1000 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-09-26 22:41:21 +1000 |
commit | 99ee7e9400f06e8718612d8b52d15215dc620774 (patch) | |
tree | 08de8c5d3985b9c2eaa419f5198f891ecd82d012 /src/cdn/routes/attachments.ts | |
parent | Remove the cdn storage location log (diff) | |
download | server-99ee7e9400f06e8718612d8b52d15215dc620774.tar.xz |
Prettier
Diffstat (limited to 'src/cdn/routes/attachments.ts')
-rw-r--r-- | src/cdn/routes/attachments.ts | 8 |
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; |