mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-03 08:39:00 +00:00
forgot to actually move the file
This commit is contained in:
@@ -85,6 +85,9 @@ router.post(
|
||||
webhook.avatar = hash;
|
||||
await webhook.save();
|
||||
}
|
||||
|
||||
res.write(" Moving file...");
|
||||
await storage.move(`avatars/${user_id}/${dirEnt}`, `avatars/${user_id}/${hash}`);
|
||||
}
|
||||
|
||||
res.write("\n");
|
||||
|
||||
Reference in New Issue
Block a user