🐛 fix avatars
This commit is contained in:
parent
b4e409f5c6
commit
799596c6f5
@ -36,7 +36,7 @@ router.post("/:user_id", multer.single("file"), async (req: Request, res: Respon
|
|||||||
await storage.set(path, buffer);
|
await storage.set(path, buffer);
|
||||||
|
|
||||||
return res.json({
|
return res.json({
|
||||||
hash,
|
id: hash,
|
||||||
content_type: type.mime,
|
content_type: type.mime,
|
||||||
size,
|
size,
|
||||||
url: `${endpoint}${req.baseUrl}/${user_id}/${hash}`,
|
url: `${endpoint}${req.baseUrl}/${user_id}/${hash}`,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user