summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-07 19:42:05 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-07 19:42:05 +0200
commit799596c6f582dc1dac97989ba62270fd66f671f0 (patch)
tree97a2a4f0b86ab8460fa9d56f8e761fc40519817c
parent:bug: fix file storage dir (diff)
downloadserver-799596c6f582dc1dac97989ba62270fd66f671f0.tar.xz
:bug: fix avatars
-rw-r--r--src/routes/avatars.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/routes/avatars.ts b/src/routes/avatars.ts
index 3d99fb86..60befe2c 100644
--- a/src/routes/avatars.ts
+++ b/src/routes/avatars.ts
@@ -36,7 +36,7 @@ router.post("/:user_id", multer.single("file"), async (req: Request, res: Respon
 	await storage.set(path, buffer);
 
 	return res.json({
-		hash,
+		id: hash,
 		content_type: type.mime,
 		size,
 		url: `${endpoint}${req.baseUrl}/${user_id}/${hash}`,