🐛 fix avatars

This commit is contained in:
Flam3rboy 2021-08-07 19:42:05 +02:00
parent b4e409f5c6
commit 799596c6f5

View File

@ -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}`,